pub struct KaioModule { /* private fields */ }Expand description
A loaded PTX module on the GPU device.
Created via KaioDevice::load_ptx.
Use function to get a handle to a specific kernel
entry point, then launch it via cudarc’s launch_builder.
Implementations§
Source§impl KaioModule
impl KaioModule
Sourcepub fn function(&self, name: &str) -> Result<KaioFunction>
pub fn function(&self, name: &str) -> Result<KaioFunction>
Get a kernel function handle by name.
The name must match the .entry name in the PTX source
(e.g. "vector_add").
Auto Trait Implementations§
impl Freeze for KaioModule
impl RefUnwindSafe for KaioModule
impl Send for KaioModule
impl Sync for KaioModule
impl Unpin for KaioModule
impl UnsafeUnpin for KaioModule
impl UnwindSafe for KaioModule
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