12#if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
14# if defined(ALPAKA_ACC_GPU_CUDA_ENABLED)
18# if ALPAKA_COMP_CLANG_CUDA && defined(CUDART_VERSION) && (CUDART_VERSION == 12000) \
19 && !defined(_CG_USER_PROVIDED_SHARED_MEMORY)
20# pragma clang diagnostic push
21# pragma clang diagnostic ignored "-Wreserved-macro-identifier"
22# define _CG_USER_PROVIDED_SHARED_MEMORY
23# pragma clang diagnostic pop
25# include <cooperative_groups.h>
28# if defined(ALPAKA_ACC_GPU_HIP_ENABLED)
29# include <hip/hip_cooperative_groups.h>
40# if !defined(ALPAKA_HOST_ONLY)
42# if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) && !ALPAKA_LANG_CUDA
43# error If ALPAKA_ACC_GPU_CUDA_ENABLED is set, the compiler has to support CUDA!
46# if defined(ALPAKA_ACC_GPU_HIP_ENABLED) && !ALPAKA_LANG_HIP
47# error If ALPAKA_ACC_GPU_HIP_ENABLED is set, the compiler has to support HIP!
57 cooperative_groups::this_grid().sync();
The GPU CUDA/HIP grid synchronization.
The alpaka accelerator library.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
static __device__ auto syncGridThreads(GridSyncCudaHipBuiltIn const &) -> void
The grid synchronization operation trait.