pub struct KaioFunction { /* private fields */ }Expand description
A handle to a kernel function within a loaded PTX module.
Use inner to access the underlying CudaFunction
for passing to cudarc’s launch_builder. In Phase 1, kernel launch
goes through cudarc directly — Phase 2’s macro will generate typed
safe wrappers.
Implementations§
Source§impl KaioFunction
impl KaioFunction
Sourcepub fn inner(&self) -> &CudaFunction
pub fn inner(&self) -> &CudaFunction
Access the underlying CudaFunction for cudarc’s launch builder.
§Example
ⓘ
let cfg = LaunchConfig::for_num_elems(n);
unsafe {
device.stream()
.launch_builder(func.inner())
.arg(buf_a.inner())
.arg(&n)
.launch(cfg)?;
}Auto Trait Implementations§
impl Freeze for KaioFunction
impl RefUnwindSafe for KaioFunction
impl Send for KaioFunction
impl Sync for KaioFunction
impl Unpin for KaioFunction
impl UnsafeUnpin for KaioFunction
impl UnwindSafe for KaioFunction
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