void
mem_fence
(
| cl_mem_fence_flags flags) |
Orders loads and stores of a work-item executing a kernel. This means that loads
and stores preceding the mem_fence
will be committed to memory
before any loads and stores following the mem_fence
.
The flags
argument specifies the memory address space and can
be set to a combination of the following literal values: CLK_LOCAL_MEM_FENCE
,
CLK_GLOBAL_MEM_FENCE
.