Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#ifndef HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h
#define HeterogeneousCore_CUDAUtilities_deviceAllocatorStatus_h

#include <cstddef>
#include <map>

namespace cms {
namespace cuda {
namespace allocator {
struct TotalBytes {
size_t free;
size_t live;
size_t liveRequested; // CMS: monitor also requested amount
// CMS: add explicit std namespace
std::size_t free;
std::size_t live;
std::size_t liveRequested; // CMS: monitor also requested amount
TotalBytes() { free = live = liveRequested = 0; }
};
/// Map type of device ordinals to the number of cached bytes cached by each device
Expand Down