pub struct KernelModule { /* private fields */ }Expand description
2026-09-25: A PTX module loaded into a CUDA context through cudarc.
Implementations§
Source§impl KernelModule
impl KernelModule
Sourcepub fn from_ptx_src(ctx: &Arc<CudaContext>, ptx_src: &str) -> Result<Self>
pub fn from_ptx_src(ctx: &Arc<CudaContext>, ptx_src: &str) -> Result<Self>
2026-09-25: Load PTX source text into ctx.
Sourcepub fn get_function(&self, name: &str) -> Result<CudaFunction>
pub fn get_function(&self, name: &str) -> Result<CudaFunction>
2026-09-25: Look up a kernel function by name.
Auto Trait Implementations§
impl Freeze for KernelModule
impl RefUnwindSafe for KernelModule
impl Send for KernelModule
impl Sync for KernelModule
impl Unpin for KernelModule
impl UnwindSafe for KernelModule
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