#[repr(C)]pub struct cudaMemLocation {
pub type_: cudaMemLocationType,
pub id: c_int,
}
Expand description
Specifies a memory location.
To specify a gpu, set type = ::cudaMemLocationTypeDevice and set id = the gpu’s device ordinal. To specify a cpu NUMA node, set type = ::cudaMemLocationTypeHostNuma and set id = host NUMA node id.
Fields§
§type_: cudaMemLocationType
< Specifies the location type, which modifies the meaning of id.
id: c_int
< identifier for a given this location’s ::CUmemLocationType.
Trait Implementations§
Source§impl Clone for cudaMemLocation
impl Clone for cudaMemLocation
Source§fn clone(&self) -> cudaMemLocation
fn clone(&self) -> cudaMemLocation
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 cudaMemLocation
impl Debug for cudaMemLocation
impl Copy for cudaMemLocation
Auto Trait Implementations§
impl Freeze for cudaMemLocation
impl RefUnwindSafe for cudaMemLocation
impl Send for cudaMemLocation
impl Sync for cudaMemLocation
impl Unpin for cudaMemLocation
impl UnwindSafe for cudaMemLocation
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