cuda.bindings._v2.driver.occupancy_available_dynamic_smem_per_block#
- cuda.bindings._v2.driver.occupancy_available_dynamic_smem_per_block(
- intptr_t func,
- int num_blocks,
- int block_size,
Returns dynamic shared memory available per block when launching
num_blocksblocks on SM.Returns in
*dynamic_smem_sizethe maximum size of dynamic shared memory to allownum_blocksblocks per SM. Note that the API can also be used with context-less kernelCUkernelby querying the handle usinglibrary_get_kernel()and then passing it to the API by casting toCUfunction. Here, the context to use for calculations will be the current context.- Parameters:
- Returns:
Returned maximum dynamic shared memory.
- Return type:
size_t
See also
cuOccupancyAvailableDynamicSMemPerBlock