#[repr(u32)]pub enum CUmemPool_attribute_enum {
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1,
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2,
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3,
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4,
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5,
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6,
CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7,
CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8,
}
Expand description
CUDA memory pool attributes
Variants§
CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1
(value type = int) Allow cuMemAllocAsync to use memory asynchronously freed in another streams as long as a stream ordering dependency of the allocating stream on the free action exists. Cuda events and null stream interactions can create the required stream ordered dependencies. (default enabled)
CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2
(value type = int) Allow reuse of already completed frees when there is no dependency between the free and allocation. (default enabled)
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3
(value type = int) Allow cuMemAllocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by cuFreeAsync (default enabled).
CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4
(value type = cuuint64_t) Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5
(value type = cuuint64_t) Amount of backing memory currently allocated for the mempool.
CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6
(value type = cuuint64_t) High watermark of backing memory allocated for the mempool since the last time it was reset. High watermark can only be reset to zero.
CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7
(value type = cuuint64_t) Amount of memory from the pool that is currently in use by the application.
CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8
(value type = cuuint64_t) High watermark of the amount of memory from the pool that was in use by the application since the last time it was reset. High watermark can only be reset to zero.
Trait Implementations§
Source§impl Clone for CUmemPool_attribute_enum
impl Clone for CUmemPool_attribute_enum
Source§fn clone(&self) -> CUmemPool_attribute_enum
fn clone(&self) -> CUmemPool_attribute_enum
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CUmemPool_attribute_enum
impl Debug for CUmemPool_attribute_enum
Source§impl Hash for CUmemPool_attribute_enum
impl Hash for CUmemPool_attribute_enum
Source§impl PartialEq for CUmemPool_attribute_enum
impl PartialEq for CUmemPool_attribute_enum
Source§fn eq(&self, other: &CUmemPool_attribute_enum) -> bool
fn eq(&self, other: &CUmemPool_attribute_enum) -> bool
self
and other
values to be equal, and is used by ==
.