29 {
"DEVICE",
"PINNED_HOST",
"HOST"}
56 return mt != mem_type;
61 static_assert(std::ranges::equal(
65 static_assert(std::ranges::equal(
RAPIDS Multi-Processor interfaces.
constexpr std::array< char const *, MEMORY_TYPES.size()> MEMORY_TYPE_NAMES
Memory type names sorted to match MemoryType and MEMORY_TYPES.
std::istream & operator>>(std::istream &is, MemoryType &out)
Overload to read a MemoryType value from an input stream.
constexpr std::span< MemoryType const > leq_memory_types(MemoryType mem_type) noexcept
Get the memory types with preference lower than or equal to mem_type.
constexpr std::array< MemoryType, 3 > MEMORY_TYPES
All memory types sorted in decreasing order of preference.
constexpr std::array< MemoryType, 2 > SPILL_TARGET_MEMORY_TYPES
Memory types that are valid spill destinations in decreasing order of preference.
MemoryType
Enum representing the type of memory sorted in decreasing order of preference.
@ PINNED_HOST
Pinned host memory.
std::ostream & operator<<(std::ostream &os, Communicator const &obj)
Overloads the stream insertion operator for the Communicator class.
constexpr char const * to_string(MemoryType mem_type)
Get the name of a MemoryType.