pub struct KernelHandle {
pub name: String,
/* private fields */
}Expand description
Handle to a JIT-compiled, loaded kernel function. Validity is
gated by crate::device::DeviceState::generation.
Fields§
§name: StringImplementations§
Source§impl KernelHandle
impl KernelHandle
pub fn generation(&self) -> u64
Sourcepub fn lowered_name(&self, expr: &str) -> Option<&str>
pub fn lowered_name(&self, expr: &str) -> Option<&str>
Phase 5: resolve a registered C++ name expression (e.g.
"my_kernel<float, 256>") to the mangled lowered ABI symbol the
PTX/CUBIN actually exports. Returns None if the expression
wasn’t registered at compile time.
Sourcepub fn cubin_bytes(&self) -> Option<&[u8]>
pub fn cubin_bytes(&self) -> Option<&[u8]>
Phase 5: borrow the compiled CUBIN bytes, if available.
Trait Implementations§
Source§impl Clone for KernelHandle
impl Clone for KernelHandle
Source§fn clone(&self) -> KernelHandle
fn clone(&self) -> KernelHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KernelHandle
impl RefUnwindSafe for KernelHandle
impl Send for KernelHandle
impl Sync for KernelHandle
impl Unpin for KernelHandle
impl UnsafeUnpin for KernelHandle
impl UnwindSafe for KernelHandle
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