#[non_exhaustive]#[repr(u32)]pub enum CUlibraryOption_enum {
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = 0,
CU_LIBRARY_BINARY_IS_PRESERVED = 1,
CU_LIBRARY_NUM_OPTIONS = 2,
}Expand description
Library options to be specified with ::cuLibraryLoadData() or ::cuLibraryLoadFromFile()
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = 0
CU_LIBRARY_BINARY_IS_PRESERVED = 1
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.
CU_LIBRARY_NUM_OPTIONS = 2
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 moresource§impl Debug for CUlibraryOption_enum
impl Debug for CUlibraryOption_enum
source§impl Hash for CUlibraryOption_enum
impl Hash for CUlibraryOption_enum
source§impl PartialEq for CUlibraryOption_enum
impl PartialEq for CUlibraryOption_enum
source§fn eq(&self, other: &CUlibraryOption_enum) -> bool
fn eq(&self, other: &CUlibraryOption_enum) -> bool
self and other values to be equal, and is used
by ==.