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 <map>
5 
6 namespace cms {
7  namespace cuda {
8  namespace allocator {
9  struct TotalBytes {
10  size_t free;
11  size_t live;
12  size_t liveRequested; // CMS: monitor also requested amount
14  };
16  using GpuCachedBytes = std::map<int, TotalBytes>;
17  } // namespace allocator
18 
20  } // namespace cuda
21 } // namespace cms
22 
23 #endif
cms::cuda::allocator::TotalBytes::free
size_t free
Definition: deviceAllocatorStatus.h:10
cms::cuda::allocator::TotalBytes
Definition: deviceAllocatorStatus.h:9
cms::cuda::allocator::TotalBytes::live
size_t live
Definition: deviceAllocatorStatus.h:11
cms::cuda::deviceAllocatorStatus
allocator::GpuCachedBytes deviceAllocatorStatus()
Definition: deviceAllocatorStatus.cc:6
prod1Switch_cff.cuda
cuda
Definition: prod1Switch_cff.py:11
cms::cuda::allocator::TotalBytes::liveRequested
size_t liveRequested
Definition: deviceAllocatorStatus.h:12
cms::cuda::allocator::TotalBytes::TotalBytes
TotalBytes()
Definition: deviceAllocatorStatus.h:13
cms::cuda::allocator::GpuCachedBytes
std::map< int, TotalBytes > GpuCachedBytes
Map type of device ordinals to the number of cached bytes cached by each device.
Definition: deviceAllocatorStatus.h:16
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21