CMS 3D CMS Logo

deviceAllocatorStatus.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h
2 #define HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h
3 
4 #include <cstddef>
5 #include <map>
6 
7 namespace cms {
8  namespace cuda {
9  namespace allocator {
10  struct TotalBytes {
11  // CMS: add explicit std namespace
12  std::size_t free;
13  std::size_t live;
14  std::size_t liveRequested; // CMS: monitor also requested amount
16  };
18  using GpuCachedBytes = std::map<int, TotalBytes>;
19  } // namespace allocator
20 
22  } // namespace cuda
23 } // namespace cms
24 
25 #endif
allocator::GpuCachedBytes deviceAllocatorStatus()
Namespace of DDCMS conversion namespace.
std::map< int, TotalBytes > GpuCachedBytes
Map type of device ordinals to the number of cached bytes cached by each device.