pub struct RawBufferAtomicFmaxOperation<'c> { /* private fields */ }
Expand description
A raw_buffer_atomic_fmax
operation. Raw Buffer Floating-point Atomic Max (non-GFX9).
The amdgpu.raw_buffer_atomic_fmax
op is a wrapper around the
buffer-based atomic floating point max available on AMD GPUs (except GFX9).
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> RawBufferAtomicFmaxOperation<'c>
impl<'c> RawBufferAtomicFmaxOperation<'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>
) -> RawBufferAtomicFmaxOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RawBufferAtomicFmaxOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.