cuda.bindings._v2.driver.ctx_get_shared_mem_config#
- cuda.bindings._v2.driver.ctx_get_shared_mem_config() → int#
Returns the current shared memory configuration for the current context.
[Deprecated]. This function will return in
p_configthe current size of shared memory banks in the current context. On devices with configurable shared memory banks,cuCtxSetSharedMemConfigcan be used to change this setting, so that all subsequent kernel launches will by default use the new bank size. WhencuCtxGetSharedMemConfigis called on devices without configurable shared memory, it will return the fixed bank size of the hardware. The returned bank configurations can be either:.CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE: shared memory bank width is four bytes.CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE: shared memory bank width will eight bytes.
- Returns:
returned shared memory configuration.
- Return type:
See also
cuCtxGetSharedMemConfig