cuda.bindings._v2.driver.SharedMemoryMode#
- class cuda.bindings._v2.driver.SharedMemoryMode(value: int)#
Shared memory related attributes for use with cuLaunchKernelEx
See CUsharedMemoryMode.
- DEFAULT: 0
The default to use for shared memory on launch - uses current function attribute for CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES
- REQUIRE_PORTABLE: 1
Specifies that the dynamic shared size bytes requested must be a portable size within the bounds of CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK
- ALLOW_NON_PORTABLE: 2
Specifies that the dynamic shared size bytes requested may be a non-portable size but still within the bounds of CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN
- ALLOW_OVERSIZED_SHARED_MEMORY: 3
Specifies that oversized shared memory configurations may be used (with the limitation of only 8kB L1 cache)
- PREFER_OVERSIZED_SHARED_MEMORY: 4
Specifies that oversized shared memory configurations may be used (with the limitation of only 8kB L1 cache), and prefer an oversized shared memory configuration