pub struct CuModule { /* private fields */ }Implementations§
Source§impl CuModule
impl CuModule
pub unsafe fn from_ptx(device: CudaDevice, ptx: &[u8]) -> CuModule
pub fn from_source( device: CudaDevice, src: &str, name: Option<&str>, expected_names: &[&str], headers: &HashMap<&str, &str>, ) -> CompileResult
Sourcepub fn get_function_by_lower_name(&self, name: &str) -> Option<CuFunction>
pub fn get_function_by_lower_name(&self, name: &str) -> Option<CuFunction>
It’s probably easier to use CompileResult::get_function_by_name if possible.
pub fn device(&self) -> CudaDevice
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CuModule
impl RefUnwindSafe for CuModule
impl !Send for CuModule
impl !Sync for CuModule
impl Unpin for CuModule
impl UnwindSafe for CuModule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more