Enum hip_sys::hiprt::hipMemPoolAttr
source · #[non_exhaustive]#[repr(u32)]pub enum hipMemPoolAttr {
hipMemPoolReuseFollowEventDependencies,
hipMemPoolReuseAllowOpportunistic,
hipMemPoolReuseAllowInternalDependencies,
hipMemPoolAttrReleaseThreshold,
hipMemPoolAttrReservedMemCurrent,
hipMemPoolAttrReservedMemHigh,
hipMemPoolAttrUsedMemCurrent,
hipMemPoolAttrUsedMemHigh,
}Expand description
@brief HIP memory pool attributes @enum @ingroup Enumerations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
hipMemPoolReuseFollowEventDependencies
(value type = int) Allow @p hipMemAllocAsync to use memory asynchronously freed in another streams as long as a stream ordering dependency of the allocating stream on the free action exists. hip events and null stream interactions can create the required stream ordered dependencies. (default enabled)
hipMemPoolReuseAllowOpportunistic
(value type = int) Allow reuse of already completed frees when there is no dependency between the free and allocation. (default enabled)
hipMemPoolReuseAllowInternalDependencies
(value type = int) Allow @p hipMemAllocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by cuFreeAsync (default enabled).
hipMemPoolAttrReleaseThreshold
(value type = uint64_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)
hipMemPoolAttrReservedMemCurrent
(value type = uint64_t) Amount of backing memory currently allocated for the mempool.
hipMemPoolAttrReservedMemHigh
(value type = uint64_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.
hipMemPoolAttrUsedMemCurrent
(value type = uint64_t) Amount of memory from the pool that is currently in use by the application.
hipMemPoolAttrUsedMemHigh
(value type = uint64_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 hipMemPoolAttr
impl Clone for hipMemPoolAttr
source§fn clone(&self) -> hipMemPoolAttr
fn clone(&self) -> hipMemPoolAttr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for hipMemPoolAttr
impl Debug for hipMemPoolAttr
source§impl Hash for hipMemPoolAttr
impl Hash for hipMemPoolAttr
source§impl Ord for hipMemPoolAttr
impl Ord for hipMemPoolAttr
source§fn cmp(&self, other: &hipMemPoolAttr) -> Ordering
fn cmp(&self, other: &hipMemPoolAttr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<hipMemPoolAttr> for hipMemPoolAttr
impl PartialEq<hipMemPoolAttr> for hipMemPoolAttr
source§fn eq(&self, other: &hipMemPoolAttr) -> bool
fn eq(&self, other: &hipMemPoolAttr) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemPoolAttr> for hipMemPoolAttr
impl PartialOrd<hipMemPoolAttr> for hipMemPoolAttr
source§fn partial_cmp(&self, other: &hipMemPoolAttr) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemPoolAttr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more