triton.language.atomic_max(pointer, val, mask=None, sem=None)

Performs an atomic max at the memory location specified by pointer.

Return the data stored at pointer before the atomic operation.

  • pointer (Block of dtype=triton.PointerDType) – The memory locations to operate on

  • val (Block of dtype=pointer.dtype.element_ty) – The values with which to perform the atomic operation

  • sem (str) – Memory semantics to use (“ACQUIRE_RELEASE” (default), “ACQUIRE”, “RELEASE”, or “RELAXED”)