#[repr(C)]pub struct ReduceArgs {
pub input: u64,
pub out: u64,
pub n: u32,
pub n_harts: u32,
}Expand description
Arguments for the data-parallel reduction kernel (reduce-rs).
Fields§
§input: u64Device address of the input array (n × u32).
out: u64Device address of the output array (n_harts × one u64 per cache line).
n: u32Number of input elements.
n_harts: u32Number of participating harts.
Trait Implementations§
Source§impl Clone for ReduceArgs
impl Clone for ReduceArgs
Source§fn clone(&self) -> ReduceArgs
fn clone(&self) -> ReduceArgs
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 ReduceArgs
Source§impl Debug for ReduceArgs
impl Debug for ReduceArgs
Source§impl DeviceArgs for ReduceArgs
impl DeviceArgs for ReduceArgs
impl Eq for ReduceArgs
Source§impl PartialEq for ReduceArgs
impl PartialEq for ReduceArgs
impl StructuralPartialEq for ReduceArgs
Auto Trait Implementations§
impl Freeze for ReduceArgs
impl RefUnwindSafe for ReduceArgs
impl Send for ReduceArgs
impl Sync for ReduceArgs
impl Unpin for ReduceArgs
impl UnsafeUnpin for ReduceArgs
impl UnwindSafe for ReduceArgs
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