#[repr(C)]pub struct starpu_tensor_interface {
pub id: starpu_data_interface_id,
pub ptr: usize,
pub dev_handle: usize,
pub offset: usize,
pub nx: u32,
pub ny: u32,
pub nz: u32,
pub nt: u32,
pub ldy: u32,
pub ldz: u32,
pub ldt: u32,
pub elemsize: usize,
}Expand description
Tensor interface for 4D dense tensors
Fields§
§id: starpu_data_interface_id< identifier of the interface
ptr: usize< local pointer of the tensor
dev_handle: usize< device handle of the tensor.
offset: usize< offset in the tensor.
nx: u32< number of elements on the x-axis of the tensor.
ny: u32< number of elements on the y-axis of the tensor.
nz: u32< number of elements on the z-axis of the tensor.
nt: u32< number of elements on the t-axis of the tensor.
ldy: u32< number of elements between two lines
ldz: u32< number of elements between two planes
ldt: u32< number of elements between two cubes
elemsize: usize< size of the elements of the tensor.
Trait Implementations§
Source§impl Clone for starpu_tensor_interface
impl Clone for starpu_tensor_interface
Source§fn clone(&self) -> starpu_tensor_interface
fn clone(&self) -> starpu_tensor_interface
Returns a duplicate 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 starpu_tensor_interface
impl Debug for starpu_tensor_interface
Source§impl Default for starpu_tensor_interface
impl Default for starpu_tensor_interface
impl Copy for starpu_tensor_interface
Auto Trait Implementations§
impl Freeze for starpu_tensor_interface
impl RefUnwindSafe for starpu_tensor_interface
impl Send for starpu_tensor_interface
impl Sync for starpu_tensor_interface
impl Unpin for starpu_tensor_interface
impl UnwindSafe for starpu_tensor_interface
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