#[repr(transparent)]pub struct CUsharedMemoryMode_enum(pub c_uint);Expand description
Shared memory related attributes for use with ::cuLaunchKernelEx
Tuple Fields§
§0: c_uintImplementations§
Sourcepub const CU_SHARED_MEMORY_MODE_DEFAULT: CUsharedMemoryMode_enum
pub const CU_SHARED_MEMORY_MODE_DEFAULT: CUsharedMemoryMode_enum
The default to use for shared memory on launch - uses current function attribute for CUfunction_attribute_enum::CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES.
Sourcepub const CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE: CUsharedMemoryMode_enum
pub const CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE: CUsharedMemoryMode_enum
Specifies that the dynamic shared size bytes requested must be a portable size within the bounds of CUdevice_attribute_enum::CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK.
Sourcepub const CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE: CUsharedMemoryMode_enum
pub const CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE: CUsharedMemoryMode_enum
Specifies that the dynamic shared size bytes requested may be a non-portable size but still within the bounds of CUdevice_attribute_enum::CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN.
Sourcepub const CU_SHARED_MEMORY_MODE_ALLOW_OVERSIZED_SHARED_MEMORY: CUsharedMemoryMode_enum
pub const CU_SHARED_MEMORY_MODE_ALLOW_OVERSIZED_SHARED_MEMORY: CUsharedMemoryMode_enum
Specifies that oversized shared memory configurations may be used (with the limitation of only 8kB L1 cache).
Sourcepub const CU_SHARED_MEMORY_MODE_PREFER_OVERSIZED_SHARED_MEMORY: CUsharedMemoryMode_enum
pub const CU_SHARED_MEMORY_MODE_PREFER_OVERSIZED_SHARED_MEMORY: CUsharedMemoryMode_enum
Specifies that oversized shared memory configurations may be used (with the limitation of only 8kB L1 cache), and prefer an oversized shared memory configuration.