Skip to main content
Log in

Mojo function

fence_proxy_tensormap_generic_sys_acquire

fence_proxy_tensormap_generic_sys_acquire[type: AnyType](ptr: UnsafePointer[type, alignment=alignment, mut=mut, origin=origin], size: SIMD[int32, 1])

Acquires a system-wide memory fence for tensor map operations.

This function establishes a memory fence that ensures proper synchronization between tensor map operations and system memory. It guarantees that all previous memory operations are completed before subsequent tensor map accesses.

Note: This is a low-level synchronization primitive typically used in conjunction with TMA (Tensor Memory Access) operations on NVIDIA GPUs.

Args:

  • ptr (UnsafePointer[type, alignment=alignment, mut=mut, origin=origin]): Pointer to the tensor map object in system memory that needs to be synchronized.
  • size (SIMD[int32, 1]): The size in bytes of the tensor map object being synchronized.