11#if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED) 
   20#    if !defined(ALPAKA_HOST_ONLY) 
   22#        if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) && !ALPAKA_LANG_CUDA 
   23#            error If ALPAKA_ACC_GPU_CUDA_ENABLED is set, the compiler has to support CUDA! 
   26#        if defined(ALPAKA_ACC_GPU_HIP_ENABLED) && !ALPAKA_LANG_HIP 
   27#            error If ALPAKA_ACC_GPU_HIP_ENABLED is set, the compiler has to support HIP! 
   37                __threadfence_block();
 
   42        struct MemFence<MemFenceUniformCudaHipBuiltIn, memory_scope::Grid>
 
   44            __device__ 
static auto mem_fence(MemFenceUniformCudaHipBuiltIn 
const&, memory_scope::Grid 
const&)
 
   52        struct MemFence<MemFenceUniformCudaHipBuiltIn, memory_scope::Device>
 
   54            __device__ 
static auto mem_fence(MemFenceUniformCudaHipBuiltIn 
const&, memory_scope::Device 
const&)
 
The alpaka accelerator library.
 
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto mem_fence(TMemFence const &fence, TMemScope const &scope) -> void
Issues memory fence instructions.
 
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
 
Memory fences are observed by all threads in the same block.