#[repr(transparent)]pub struct cudaMemPoolAttr(pub c_uint);
Expand description
CUDA memory pool attributes
Tuple Fields§
§0: c_uint
Implementations§
Source§impl cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolReuseFollowEventDependencies: cudaMemPoolAttr
pub const cudaMemPoolReuseFollowEventDependencies: cudaMemPoolAttr
(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 cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolReuseAllowOpportunistic: cudaMemPoolAttr
pub const cudaMemPoolReuseAllowOpportunistic: cudaMemPoolAttr
(value type = int) Allow reuse of already completed frees when there is no dependency between the free and allocation. (default enabled)
Source§impl cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolReuseAllowInternalDependencies: cudaMemPoolAttr
pub const cudaMemPoolReuseAllowInternalDependencies: cudaMemPoolAttr
(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 cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolAttrReleaseThreshold: cudaMemPoolAttr
pub const cudaMemPoolAttrReleaseThreshold: cudaMemPoolAttr
(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 cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolAttrReservedMemCurrent: cudaMemPoolAttr
pub const cudaMemPoolAttrReservedMemCurrent: cudaMemPoolAttr
(value type = cuuint64_t) Amount of backing memory currently allocated for the mempool.
Source§impl cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolAttrReservedMemHigh: cudaMemPoolAttr
pub const cudaMemPoolAttrReservedMemHigh: cudaMemPoolAttr
(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 cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolAttrUsedMemCurrent: cudaMemPoolAttr
pub const cudaMemPoolAttrUsedMemCurrent: cudaMemPoolAttr
(value type = cuuint64_t) Amount of memory from the pool that is currently in use by the application.
Source§impl cudaMemPoolAttr
impl cudaMemPoolAttr
Sourcepub const cudaMemPoolAttrUsedMemHigh: cudaMemPoolAttr
pub const cudaMemPoolAttrUsedMemHigh: cudaMemPoolAttr
(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 cudaMemPoolAttr
impl Clone for cudaMemPoolAttr
Source§fn clone(&self) -> cudaMemPoolAttr
fn clone(&self) -> cudaMemPoolAttr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more