table of contents
MEM_FENCE(3clc) | OpenCL Manual | MEM_FENCE(3clc) |
NAME¶
mem_fence - Orders loads and stores of a work-item executing a kernel.¶
void
mem_fence(cl_mem_fence_flags flags);
DESCRIPTION¶
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]SEE ALSO¶
explicitMemoryFenceFunctions(3clc)AUTHORS¶
The Khronos GroupCOPYRIGHT¶
Copyright © 2007-2011 The Khronos Group Inc.NOTES¶
- 1.
- OpenCL Specification
page 275, section 6.12.9 - Explicit Memory Fence
Functions
06/18/2014 | The Khronos Group |