mem_fence3clc
Orders loads and stores of a work-item executing a kernel.
void mem_fence(cl_mem_fence_flags flags);
Overview
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.
Specification
OpenCL Specification[1]
Notes
- 1.
-
OpenCL Specification
page 275, section 6.12.9 - Explicit Memory Fence Functions
Releases
5 releases since Debian 8 (Jessie); the text changed 3 times.