pub struct Library { /* private fields */ }Expand description
A loaded CUDA library (CUDA 12.0+).
Implementations§
Source§impl Library
impl Library
Sourcepub fn load_raw(image: &[u8]) -> Result<Self>
pub fn load_raw(image: &[u8]) -> Result<Self>
Load a library from a raw binary image (CUBIN, fatbin, or null-terminated PTX).
Sourcepub fn get_kernel(&self, name: &str) -> Result<Kernel>
pub fn get_kernel(&self, name: &str) -> Result<Kernel>
Look up a kernel entry point by name.
Sourcepub fn as_raw(&self) -> cudaLibrary_t
pub fn as_raw(&self) -> cudaLibrary_t
Raw cudaLibrary_t. Use with care.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnsafeUnpin for Library
impl UnwindSafe for Library
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