#[repr(C)]pub struct uct_md_attr {
pub cap: uct_md_attr__bindgen_ty_1,
pub reg_cost: ucs_linear_func_t,
pub component_name: [c_char; 16],
pub rkey_packed_size: size_t,
pub local_cpus: ucs_cpu_set_t,
}Expand description
@ingroup UCT_MD @brief Memory domain attributes.
This structure defines the attributes of a Memory Domain which includes maximum memory that can be allocated, credentials required for accessing the memory, CPU mask indicating the proximity of CPUs, and bitmaps indicating the types of memory (CPU/CUDA/ROCM) that can be detected, allocated and accessed.
Fields§
§cap: uct_md_attr__bindgen_ty_1§reg_cost: ucs_linear_func_t< Memory registration cost estimation (time,seconds) as a linear function of the buffer size.
component_name: [c_char; 16]< Component name
rkey_packed_size: size_t< Size of buffer needed for packed rkey
local_cpus: ucs_cpu_set_t< Mask of CPUs near the resource
Trait Implementations§
Source§impl Clone for uct_md_attr
impl Clone for uct_md_attr
Source§fn clone(&self) -> uct_md_attr
fn clone(&self) -> uct_md_attr
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 uct_md_attr
impl Debug for uct_md_attr
impl Copy for uct_md_attr
Auto Trait Implementations§
impl Freeze for uct_md_attr
impl RefUnwindSafe for uct_md_attr
impl Send for uct_md_attr
impl Sync for uct_md_attr
impl Unpin for uct_md_attr
impl UnwindSafe for uct_md_attr
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