pub struct CachedPlan {
pub plan: cutensorPlan_t,
pub pref: cutensorPlanPreference_t,
pub op: cutensorOperationDescriptor_t,
pub descs: Vec<cutensorTensorDescriptor_t>,
pub workspace_size: u64,
}Expand description
Newtype around the cuTENSOR descriptor pointers so we can unsafe impl Send. Each CachedPlan owns its descriptors and the plan
itself; on Drop we tear them down in reverse construction order.
Fields§
§plan: cutensorPlan_t§pref: cutensorPlanPreference_t§op: cutensorOperationDescriptor_t§descs: Vec<cutensorTensorDescriptor_t>§workspace_size: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for CachedPlan
impl RefUnwindSafe for CachedPlan
impl Unpin for CachedPlan
impl UnsafeUnpin for CachedPlan
impl UnwindSafe for CachedPlan
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