pub struct RawBufferAtomicSmaxOperation<'c> { /* private fields */ }
Expand description
A raw_buffer_atomic_smax
operation. Raw Buffer Signed Integer Atomic Max.
The amdgpu.raw_buffer_atomic_smax
op is a wrapper around the
buffer-based atomic signed integer max available on AMD GPUs.
The index into the buffer is computed as for memref.store
with the addition
of indexOffset
(which is used to aid in emitting vectorized code) and,
if present sgprOffset
(which is added after bounds checks and includes
any non-zero offset on the memref type).
All indexing components are given in terms of the memref’s element size, not the byte lengths required by the intrinsic.
Out of bounds atomic operations are ignored in hardware.
See amdgpu.raw_buffer_load
for a description of how the underlying
instruction is constructed.
Implementations§
source§impl<'c> RawBufferAtomicSmaxOperation<'c>
impl<'c> RawBufferAtomicSmaxOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> RawBufferAtomicSmaxOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RawBufferAtomicSmaxOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.