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 
4 #include <alpaka/alpaka.hpp>
5 
12 
13 namespace cms::alpakatools {
14 
15  template <typename TQueue, typename = std::enable_if_t<alpaka::isQueue<TQueue>>>
17  // thread safe initialisation of the host allocator
19  host(),
25  false, // reuseSameQueueAllocations
26  false); // debug
27 
28  // the public interface is thread safe
29  return allocator;
30  }
31 
32 } // namespace cms::alpakatools
33 
34 #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:14
constexpr unsigned int binGrowth