HeterogeneousCore
CUDAUtilities
interface
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
15
TotalBytes
() {
free
=
live
=
liveRequested
= 0; }
16
};
18
using
GpuCachedBytes
= std::map<int, TotalBytes>;
19
}
// namespace allocator
20
21
allocator::GpuCachedBytes
deviceAllocatorStatus
();
22
}
// namespace cuda
23
}
// namespace cms
24
25
#endif
cms::cuda::allocator::TotalBytes::liveRequested
std::size_t liveRequested
Definition:
deviceAllocatorStatus.h:14
cms::cuda::allocator::TotalBytes::free
std::size_t free
Definition:
deviceAllocatorStatus.h:12
HLT_2022v12_cff.allocator
allocator
Definition:
HLT_2022v12_cff.py:6221
cms::cuda::deviceAllocatorStatus
allocator::GpuCachedBytes deviceAllocatorStatus()
Definition:
deviceAllocatorStatus.cc:6
cms::cuda::allocator::TotalBytes::live
std::size_t live
Definition:
deviceAllocatorStatus.h:13
cms::cuda::allocator::TotalBytes::TotalBytes
TotalBytes()
Definition:
deviceAllocatorStatus.h:15
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:41
cms::cuda::allocator::TotalBytes
Definition:
deviceAllocatorStatus.h:10
ecalDigis_cff.cuda
cuda
Definition:
ecalDigis_cff.py:35
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:18
Generated for CMSSW Reference Manual by
1.8.14