#[repr(u32)]pub enum ucs_memory_type {
UCS_MEMORY_TYPE_HOST = 0,
UCS_MEMORY_TYPE_CUDA = 1,
UCS_MEMORY_TYPE_CUDA_MANAGED = 2,
UCS_MEMORY_TYPE_ROCM = 3,
UCS_MEMORY_TYPE_ROCM_MANAGED = 4,
UCS_MEMORY_TYPE_LAST = 5,
}Expand description
@ingroup UCS_RESOURCE @brief Memory types
List of supported memory types.
Variants§
UCS_MEMORY_TYPE_HOST = 0
< Default system memory
UCS_MEMORY_TYPE_CUDA = 1
< NVIDIA CUDA memory
UCS_MEMORY_TYPE_CUDA_MANAGED = 2
< NVIDIA CUDA managed (or unified) memory
UCS_MEMORY_TYPE_ROCM = 3
< AMD ROCM memory
UCS_MEMORY_TYPE_ROCM_MANAGED = 4
< AMD ROCM managed system memory
UCS_MEMORY_TYPE_LAST = 5
Implementations§
Source§impl ucs_memory_type
impl ucs_memory_type
pub const UCS_MEMORY_TYPE_UNKNOWN: ucs_memory_type = ucs_memory_type::UCS_MEMORY_TYPE_LAST
Trait Implementations§
Source§impl Clone for ucs_memory_type
impl Clone for ucs_memory_type
Source§fn clone(&self) -> ucs_memory_type
fn clone(&self) -> ucs_memory_type
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ucs_memory_type
impl Debug for ucs_memory_type
Source§impl Hash for ucs_memory_type
impl Hash for ucs_memory_type
Source§impl PartialEq for ucs_memory_type
impl PartialEq for ucs_memory_type
impl Copy for ucs_memory_type
impl Eq for ucs_memory_type
impl StructuralPartialEq for ucs_memory_type
Auto Trait Implementations§
impl Freeze for ucs_memory_type
impl RefUnwindSafe for ucs_memory_type
impl Send for ucs_memory_type
impl Sync for ucs_memory_type
impl Unpin for ucs_memory_type
impl UnwindSafe for ucs_memory_type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more