pub struct FftPlan {
pub key: PlanKey,
/* private fields */
}Expand description
Opaque handle to a cuFFT plan (already materialized through the
LRU cache). Callers obtain one via FftActor::ensure_plan or by
caching the PlanKey returned from FftPlanMany::key.
Fields§
§key: PlanKeyImplementations§
Source§impl FftPlan
impl FftPlan
pub fn key(&self) -> PlanKey
Sourcepub unsafe fn with_callback(
&self,
kind: FftCallbackKind,
cb: *mut c_void,
caller_info: *mut c_void,
) -> Result<(), GpuError>
pub unsafe fn with_callback( &self, kind: FftCallbackKind, cb: *mut c_void, caller_info: *mut c_void, ) -> Result<(), GpuError>
Install a load/store callback on this plan via
cufftXtSetCallback. Returns Err if the runtime
libcufft doesn’t expose the Xt API or the call fails.
§Safety
cb must be a valid CUDA device function pointer of the
signature matching kind. caller_info (if non-null) must
outlive every launch on this plan.
Sourcepub unsafe fn with_load_callback(
&self,
kind: FftCallbackKind,
cb: *mut c_void,
caller_info: *mut c_void,
) -> Result<(), GpuError>
pub unsafe fn with_load_callback( &self, kind: FftCallbackKind, cb: *mut c_void, caller_info: *mut c_void, ) -> Result<(), GpuError>
Sourcepub unsafe fn with_store_callback(
&self,
kind: FftCallbackKind,
cb: *mut c_void,
caller_info: *mut c_void,
) -> Result<(), GpuError>
pub unsafe fn with_store_callback( &self, kind: FftCallbackKind, cb: *mut c_void, caller_info: *mut c_void, ) -> Result<(), GpuError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FftPlan
impl RefUnwindSafe for FftPlan
impl Send for FftPlan
impl Sync for FftPlan
impl Unpin for FftPlan
impl UnsafeUnpin for FftPlan
impl UnwindSafe for FftPlan
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