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 
11 
12 namespace cms::alpakatools {
13 
14  template <typename TQueue, typename = std::enable_if_t<alpaka::isQueue<TQueue>>>
16  // thread safe initialisation of the host allocator
18  host(),
24  false, // reuseSameQueueAllocations
25  false); // debug
26 
27  // the public interface is thread safe
28  return allocator;
29  }
30 
31 } // namespace cms::alpakatools
32 
33 #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