#[repr(C)]pub struct hipMemLocation {
pub type_: hipMemLocationType,
pub id: c_int,
}
Expand description
Specifies a memory location.
To specify a gpu, set type = @p hipMemLocationTypeDevice and set id = the gpu’s device ID
Fields§
§type_: hipMemLocationType
< Specifies the location type, which describes the meaning of id
id: c_int
< Identifier for the provided location type @p hipMemLocationType
Trait Implementations§
Source§impl Clone for hipMemLocation
impl Clone for hipMemLocation
Source§fn clone(&self) -> hipMemLocation
fn clone(&self) -> hipMemLocation
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 hipMemLocation
impl Debug for hipMemLocation
impl Copy for hipMemLocation
Auto Trait Implementations§
impl Freeze for hipMemLocation
impl RefUnwindSafe for hipMemLocation
impl Send for hipMemLocation
impl Sync for hipMemLocation
impl Unpin for hipMemLocation
impl UnwindSafe for hipMemLocation
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