#[repr(transparent)]pub struct CUmemPool_attribute(pub c_uint);
Expand description
CUDA memory pool attributes CUDA memory pool attributes
Tuple Fields§
§0: c_uint
Implementations§
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES: CUmemPool_attribute_enum
(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)
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC: CUmemPool_attribute_enum
(value type = int) Allow reuse of already completed frees when there is no dependency between the free and allocation. (default enabled)
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES: CUmemPool_attribute_enum
(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).
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: CUmemPool_attribute_enum
(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)
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT: CUmemPool_attribute_enum
(value type = cuuint64_t) Amount of backing memory currently allocated for the mempool.
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH: CUmemPool_attribute_enum
(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.
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_USED_MEM_CURRENT: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_USED_MEM_CURRENT: CUmemPool_attribute_enum
(value type = cuuint64_t) Amount of memory from the pool that is currently in use by the application.
Source§impl CUmemPool_attribute_enum
impl CUmemPool_attribute_enum
Sourcepub const CU_MEMPOOL_ATTR_USED_MEM_HIGH: CUmemPool_attribute_enum
pub const CU_MEMPOOL_ATTR_USED_MEM_HIGH: CUmemPool_attribute_enum
(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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more