pub struct RudaNativeRecords {
pub address: u64,
pub stride: u64,
}Expand description
A device-native strided record range. Addresses and strides are in bytes. The caller retains the allocation and guarantees alignment and bounds for every access, including any references retained by an operation.
Fields§
§address: u64§stride: u64Trait Implementations§
Source§impl Clone for RudaNativeRecords
impl Clone for RudaNativeRecords
Source§fn clone(&self) -> RudaNativeRecords
fn clone(&self) -> RudaNativeRecords
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 RudaNativeRecords
Source§impl LaunchArg for RudaNativeRecords
impl LaunchArg for RudaNativeRecords
Source§type RuntimeArg<R: Runtime> = RudaNativeRecordsLaunch<R>
type RuntimeArg<R: Runtime> = RudaNativeRecordsLaunch<R>
The runtime argument for the kernel.
Source§type CompilationArg = RudaNativeRecordsCompilationArg
type CompilationArg = RudaNativeRecordsCompilationArg
Compilation argument.
fn register<R: Runtime>( arg: Self::RuntimeArg<R>, launcher: &mut KernelLauncher<R>, ) -> Self::CompilationArg
Source§fn expand(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as RudaType>::ExpandType
fn expand( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as RudaType>::ExpandType
Register an input variable during compilation that fill the
KernelBuilder.Source§fn expand_output(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as RudaType>::ExpandType
fn expand_output( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as RudaType>::ExpandType
Register an output variable during compilation that fill the
KernelBuilder.Source§impl<T: RudaRecord> RudaAddress<T> for RudaNativeRecords
impl<T: RudaRecord> RudaAddress<T> for RudaNativeRecords
fn reference(&self, index: usize) -> RudaReference<T>
fn __expand_reference( scope: &mut Scope, this: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, ) -> <RudaReference<T> as RudaType>::ExpandType
Source§impl<T: RudaRecord> RudaRead<T> for RudaNativeRecords
impl<T: RudaRecord> RudaRead<T> for RudaNativeRecords
fn read(&self, index: usize) -> T
fn __expand_read( scope: &mut Scope, this: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, ) -> <T as RudaType>::ExpandType
Source§impl RudaType for RudaNativeRecords
impl RudaType for RudaNativeRecords
Source§impl<T: RudaRecord> RudaWrite<T> for RudaNativeRecords
impl<T: RudaRecord> RudaWrite<T> for RudaNativeRecords
fn write(&mut self, index: usize, value: T)
fn __expand_write( scope: &mut Scope, this: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, value: <T as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
Auto Trait Implementations§
impl Freeze for RudaNativeRecords
impl RefUnwindSafe for RudaNativeRecords
impl Send for RudaNativeRecords
impl Sync for RudaNativeRecords
impl Unpin for RudaNativeRecords
impl UnsafeUnpin for RudaNativeRecords
impl UnwindSafe for RudaNativeRecords
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TuneInputs for T
impl<T> TuneInputs for T
Source§impl<T> ViewLayoutLaunchArg for Twhere
T: LaunchArg,
impl<T> ViewLayoutLaunchArg for Twhere
T: LaunchArg,
Source§type RuntimeArg<R: Runtime> = <T as LaunchArg>::RuntimeArg<R>
type RuntimeArg<R: Runtime> = <T as LaunchArg>::RuntimeArg<R>
The runtime argument for the kernel.
Source§type CompilationArg = <T as LaunchArg>::CompilationArg
type CompilationArg = <T as LaunchArg>::CompilationArg
Compilation argument.
fn register<R, B>( arg: <T as ViewLayoutLaunchArg>::RuntimeArg<R>, _buffer: &B, _ty: Type, launcher: &mut KernelLauncher<R>, ) -> <T as ViewLayoutLaunchArg>::CompilationArg
Source§fn expand(
arg: &<T as ViewLayoutLaunchArg>::CompilationArg,
_ty: Type,
builder: &mut KernelBuilder,
) -> <T as RudaType>::ExpandType
fn expand( arg: &<T as ViewLayoutLaunchArg>::CompilationArg, _ty: Type, builder: &mut KernelBuilder, ) -> <T as RudaType>::ExpandType
Register an input variable during compilation that fill the
KernelBuilder.Source§fn expand_output(
arg: &<T as ViewLayoutLaunchArg>::CompilationArg,
_ty: Type,
builder: &mut KernelBuilder,
) -> <T as RudaType>::ExpandType
fn expand_output( arg: &<T as ViewLayoutLaunchArg>::CompilationArg, _ty: Type, builder: &mut KernelBuilder, ) -> <T as RudaType>::ExpandType
Register an output variable during compilation that fill the
KernelBuilder.