#[repr(transparent)]pub struct cudaMemLocationType(pub c_uint);
Expand description
Specifies the type of location
Tuple Fields§
§0: c_uint
Implementations§
Source§impl cudaMemLocationType
impl cudaMemLocationType
Sourcepub const cudaMemLocationTypeDevice: cudaMemLocationType
pub const cudaMemLocationTypeDevice: cudaMemLocationType
< Location is a device location, thus id is a device ordinal
Source§impl cudaMemLocationType
impl cudaMemLocationType
Sourcepub const cudaMemLocationTypeHost: cudaMemLocationType
pub const cudaMemLocationTypeHost: cudaMemLocationType
< Location is host, id is ignored
Source§impl cudaMemLocationType
impl cudaMemLocationType
Sourcepub const cudaMemLocationTypeHostNuma: cudaMemLocationType
pub const cudaMemLocationTypeHostNuma: cudaMemLocationType
< Location is a host NUMA node, thus id is a host NUMA node id
Source§impl cudaMemLocationType
impl cudaMemLocationType
Sourcepub const cudaMemLocationTypeHostNumaCurrent: cudaMemLocationType
pub const cudaMemLocationTypeHostNumaCurrent: cudaMemLocationType
< Location is the host NUMA node closest to the current thread’s CPU, id is ignored
Trait Implementations§
Source§impl Clone for cudaMemLocationType
impl Clone for cudaMemLocationType
Source§fn clone(&self) -> cudaMemLocationType
fn clone(&self) -> cudaMemLocationType
Returns a duplicate 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 cudaMemLocationType
impl Debug for cudaMemLocationType
Source§impl Hash for cudaMemLocationType
impl Hash for cudaMemLocationType
Source§impl PartialEq for cudaMemLocationType
impl PartialEq for cudaMemLocationType
impl Copy for cudaMemLocationType
impl Eq for cudaMemLocationType
impl StructuralPartialEq for cudaMemLocationType
Auto Trait Implementations§
impl Freeze for cudaMemLocationType
impl RefUnwindSafe for cudaMemLocationType
impl Send for cudaMemLocationType
impl Sync for cudaMemLocationType
impl Unpin for cudaMemLocationType
impl UnwindSafe for cudaMemLocationType
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