Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-21 04:02:34

0001 #include "HeterogeneousCore/CUDAUtilities/interface/cachingAllocators.h"
0002 
0003 #include "getCachingDeviceAllocator.h"
0004 #include "getCachingHostAllocator.h"
0005 
0006 namespace cms::cuda::allocator {
0007   void cachingAllocatorsConstruct() {
0008     cms::cuda::allocator::getCachingDeviceAllocator();
0009     cms::cuda::allocator::getCachingHostAllocator();
0010   }
0011 
0012   void cachingAllocatorsFreeCached() {
0013     cms::cuda::allocator::getCachingDeviceAllocator().FreeAllCached();
0014     cms::cuda::allocator::getCachingHostAllocator().FreeAllCached();
0015   }
0016 }  // namespace cms::cuda::allocator