#[repr(transparent)]pub struct CUlibraryOption(pub c_uint);
Expand description
Library options to be specified with ::cuLibraryLoadData() or ::cuLibraryLoadFromFile() Library options to be specified with ::cuLibraryLoadData() or ::cuLibraryLoadFromFile()
Tuple Fields§
§0: c_uint
Implementations§
Source§impl CUlibraryOption_enum
impl CUlibraryOption_enum
Sourcepub const CU_LIBRARY_BINARY_IS_PRESERVED: CUlibraryOption_enum
pub const CU_LIBRARY_BINARY_IS_PRESERVED: CUlibraryOption_enum
Specifes that the argument \p code passed to ::cuLibraryLoadData() will be preserved. Specifying this option will let the driver know that \p code can be accessed at any point until ::cuLibraryUnload(). The default behavior is for the driver to allocate and maintain its own copy of \p 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 ::CUDA_ERROR_INVALID_VALUE.
Source§impl CUlibraryOption_enum
impl CUlibraryOption_enum
Sourcepub const CU_LIBRARY_NUM_OPTIONS: CUlibraryOption_enum
pub const CU_LIBRARY_NUM_OPTIONS: CUlibraryOption_enum
Specifes that the argument \p code passed to ::cuLibraryLoadData() will be preserved. Specifying this option will let the driver know that \p code can be accessed at any point until ::cuLibraryUnload(). The default behavior is for the driver to allocate and maintain its own copy of \p 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 ::CUDA_ERROR_INVALID_VALUE.
Trait Implementations§
Source§impl Clone for CUlibraryOption_enum
impl Clone for CUlibraryOption_enum
Source§fn clone(&self) -> CUlibraryOption_enum
fn clone(&self) -> CUlibraryOption_enum
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more