triton.language.store

triton.language.store(pointer, value, mask=None)

Stores value block of elements in memory, element-wise, at the memory locations specified by pointer.

value is implicitly broadcast to pointer.shape and typecast to pointer.dtype.element_ty.

Parameters
  • pointer (Block of dtype=triton.PointerDType) – The memory locations where the elements of value are stored.

  • value (Block) – The block of elements to be stored.

  • mask (Block of triton.int1, optional) – If mask[idx] is false, do not store value[idx] at pointer[idx].