CMS 3D CMS Logo

getHostCachingAllocator.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_AlpakaInterface_interface_getHostCachingAllocator_h
2 #define HeterogeneousCore_AlpakaInterface_interface_getHostCachingAllocator_h
3 
10 
11 namespace cms::alpakatools {
12 
13  template <typename TQueue, typename = std::enable_if_t<cms::alpakatools::is_queue_v<TQueue>>>
15  // thread safe initialisation of the host allocator
17  host(),
23  false, // reuseSameQueueAllocations
24  false); // debug
25 
26  // the public interface is thread safe
27  return allocator;
28  }
29 
30 } // namespace cms::alpakatools
31 
32 #endif // HeterogeneousCore_AlpakaInterface_interface_getHostCachingAllocator_h
CachingAllocator< alpaka_common::DevHost, TQueue > & getHostCachingAllocator()
constexpr unsigned int minBin
constexpr unsigned int maxBin
constexpr double maxCachedFraction
#define CMS_THREAD_SAFE
constexpr size_t maxCachedBytes
alpaka::DevCpu const & host()
Definition: host.h:24
constexpr unsigned int binGrowth