1 #ifndef HeterogeneousCore_AlpakaInterface_interface_AllocatorPolicy_h 2 #define HeterogeneousCore_AlpakaInterface_interface_AllocatorPolicy_h 4 #include <alpaka/alpaka.hpp> 16 template <
typename TDev,
typename = std::enable_if_t<alpaka::isDevice<TDev>>>
19 #if defined ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED || defined ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLED 22 #if !defined ALPAKA_DISABLE_CACHING_ALLOCATOR 27 #endif // defined ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED || defined ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLED 29 #if defined ALPAKA_ACC_GPU_CUDA_ENABLED 32 #if !defined ALPAKA_DISABLE_CACHING_ALLOCATOR 34 #elif CUDA_VERSION >= 11020 && !defined ALPAKA_DISABLE_ASYNC_ALLOCATOR 39 #endif // ALPAKA_ACC_GPU_CUDA_ENABLED 41 #if defined ALPAKA_ACC_GPU_HIP_ENABLED 44 #if !defined ALPAKA_DISABLE_CACHING_ALLOCATOR 46 #elif HIP_VERSION >= 50400000 && !defined ALPAKA_DISABLE_ASYNC_ALLOCATOR 51 #endif // ALPAKA_ACC_GPU_HIP_ENABLED 55 #endif // HeterogeneousCore_AlpakaInterface_interface_AllocatorPolicy_h