#[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§
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more