logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mem_fence - Orders loads and stores of a work-item executing a kernel.

Authors

TheKhronosGroup

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.

Name

       mem_fence - Orders loads and stores of a work-item executing a kernel.

       voidmem_fence(cl_mem_fence_flagsflags);

Notes

        1. OpenCL Specification
           page 275, section 6.12.9 - Explicit Memory Fence Functions

The Khronos Group                                  11/18/2024                                    MEM_FENCE(3clc)

See Also

explicitMemoryFenceFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also