#[repr(C)]pub struct hipExtDynDataPrefetchRegion {
pub address: *mut c_void,
pub stride: usize,
pub width: usize,
pub height: usize,
}Expand description
@brief Describes one 2D memory region to prefetch into L2 cache.
@p address must be aligned to the device’s L2 cache line size. @p width is measured in bytes and must be a multiple of the cache line size. @p height is the number of rows to prefetch. @p stride is the byte stride between the start of consecutive rows.
Fields§
§address: *mut c_void< Base address (must be cache-line aligned)
stride: usize< Stride between row starts in bytes
width: usize< Width of each row in bytes (must be a multiple of cache line size)
height: usize< Number of rows to prefetch
Trait Implementations§
Source§impl Clone for hipExtDynDataPrefetchRegion
impl Clone for hipExtDynDataPrefetchRegion
Source§fn clone(&self) -> hipExtDynDataPrefetchRegion
fn clone(&self) -> hipExtDynDataPrefetchRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for hipExtDynDataPrefetchRegion
Auto Trait Implementations§
impl !Send for hipExtDynDataPrefetchRegion
impl !Sync for hipExtDynDataPrefetchRegion
impl Freeze for hipExtDynDataPrefetchRegion
impl RefUnwindSafe for hipExtDynDataPrefetchRegion
impl Unpin for hipExtDynDataPrefetchRegion
impl UnsafeUnpin for hipExtDynDataPrefetchRegion
impl UnwindSafe for hipExtDynDataPrefetchRegion
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