pub struct ErasedKernel;Expand description
A dummy Kernel marker used to load PTX without a concrete kernel type.
Enables CudaProgram<ErasedKernel> for type-erased model execution.
Trait Implementations§
Source§impl Kernel for ErasedKernel
impl Kernel for ErasedKernel
Source§fn kernel_source(&self) -> &str
fn kernel_source(&self) -> &str
This kernel’s body source, without the entry-point wrapper.
Source§fn entry_point_source(&self) -> &str
fn entry_point_source(&self) -> &str
Returns the Rust source of the generated C-ABI entry-point wrapper function.
Source§fn entry_point_name(&self) -> String
fn entry_point_name(&self) -> String
Returns the PTX symbol name for this kernel:
"{name}_entry_point".Auto Trait Implementations§
impl Freeze for ErasedKernel
impl RefUnwindSafe for ErasedKernel
impl Send for ErasedKernel
impl Sync for ErasedKernel
impl Unpin for ErasedKernel
impl UnsafeUnpin for ErasedKernel
impl UnwindSafe for ErasedKernel
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