#[repr(C)]pub struct hipExtDynDataPrefetchConfig {
pub numRegions: c_uint,
pub temporal: hipExtDynDataPrefetchTemporal,
pub regions: [hipExtDynDataPrefetchRegion; 2],
}Expand description
@brief Configuration for dynamic data prefetch.
Pointed to by a launch attribute via @ref hipLaunchAttributeExtDynDataPrefetch. @p numRegions must not exceed the device limit queried via @ref hipDeviceAttributeMaxDynDataPrefetchRegions (use @ref hipDeviceGetAttribute).
Cooperative prefetch is always enabled internally; the user only controls the temporal policy.
Fields§
§numRegions: c_uint< Number of valid regions (1-max)
temporal: hipExtDynDataPrefetchTemporal< Cache retention policy for prefetched data
regions: [hipExtDynDataPrefetchRegion; 2]< Prefetch regions
Trait Implementations§
Source§impl Clone for hipExtDynDataPrefetchConfig
impl Clone for hipExtDynDataPrefetchConfig
Source§fn clone(&self) -> hipExtDynDataPrefetchConfig
fn clone(&self) -> hipExtDynDataPrefetchConfig
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 hipExtDynDataPrefetchConfig
Auto Trait Implementations§
impl !Send for hipExtDynDataPrefetchConfig
impl !Sync for hipExtDynDataPrefetchConfig
impl Freeze for hipExtDynDataPrefetchConfig
impl RefUnwindSafe for hipExtDynDataPrefetchConfig
impl Unpin for hipExtDynDataPrefetchConfig
impl UnsafeUnpin for hipExtDynDataPrefetchConfig
impl UnwindSafe for hipExtDynDataPrefetchConfig
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