#[repr(transparent)]pub struct CUlibraryOption_enum(pub c_uint);Expand description
Library options to be specified with cuLibraryLoadData or cuLibraryLoadFromFile.
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUlibraryOption_enum
impl CUlibraryOption_enum
Sourcepub const CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE: CUlibraryOption_enum
pub const CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE: CUlibraryOption_enum
Supplies the host universal-function and data tables when loading a CUDA library.
Sourcepub const CU_LIBRARY_BINARY_IS_PRESERVED: CUlibraryOption_enum
pub const CU_LIBRARY_BINARY_IS_PRESERVED: CUlibraryOption_enum
Specifes that the argument code passed to cuLibraryLoadData will be preserved.
Specifying this option will let the driver know that code can be accessed at any point until cuLibraryUnload. The default behavior is for the driver to allocate and maintain its own copy of code. Note that this is only a memory usage optimization hint and the driver can choose to ignore it if required. Specifying this option with cuLibraryLoadFromFile is invalid and will return cudaError_enum::CUDA_ERROR_INVALID_VALUE.
Sourcepub const CU_LIBRARY_NUM_OPTIONS: CUlibraryOption_enum
pub const CU_LIBRARY_NUM_OPTIONS: CUlibraryOption_enum
Upper-bound sentinel for CUDA library loading option selectors.
Trait Implementations§
Source§impl Clone for CUlibraryOption_enum
impl Clone for CUlibraryOption_enum
impl Copy for CUlibraryOption_enum
Source§impl Debug for CUlibraryOption_enum
impl Debug for CUlibraryOption_enum
impl Eq for CUlibraryOption_enum
Source§impl Hash for CUlibraryOption_enum
impl Hash for CUlibraryOption_enum
Source§impl Ord for CUlibraryOption_enum
impl Ord for CUlibraryOption_enum
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CUlibraryOption_enum
impl PartialEq for CUlibraryOption_enum
Source§impl PartialOrd for CUlibraryOption_enum
impl PartialOrd for CUlibraryOption_enum
impl StructuralPartialEq for CUlibraryOption_enum
Auto Trait Implementations§
impl Forget for CUlibraryOption_enum
impl Freeze for CUlibraryOption_enum
impl Move for CUlibraryOption_enum
impl RefUnwindSafe for CUlibraryOption_enum
impl Send for CUlibraryOption_enum
impl Sync for CUlibraryOption_enum
impl Unpin for CUlibraryOption_enum
impl UnsafeUnpin for CUlibraryOption_enum
impl UnwindSafe for CUlibraryOption_enum
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