numba_dpex.kernel_api.atomic_fence

Python functions that simulate SYCL’s atomic_fence primitives.

Overview

Function

atomic_fence(memory_order, memory_scope)

Performs a memory fence operations across all work-items.

Functions

atomic_fence(memory_order: MemoryOrder, memory_scope: MemoryScope)

Performs a memory fence operations across all work-items.

The function is equivalent to the sycl::atomic_fence function and controls the order of memory accesses (loads and stores) by individual work-items.

Important

The function is a no-op during CPython execution and only available in JIT compiled mode of execution.

Parameters:
  • memory_order (MemoryOrder) – The memory synchronization order.

  • memory_scope (MemoryScope) – The set of work-items and devices to which the memory ordering constraints apply.