cub::MaxPotentialDynamicSmemBytes#
-
template<class KernelPtr>
inline cudaError_t cub::MaxPotentialDynamicSmemBytes( - int &max_dyn_smem_bytes,
- KernelPtr kernel_ptr
Computes the maximum potential dynamic shared memory size per block for kernel
kernel_ptrtaking into account the amount of kernel’s static and CUDA Driver’s reserved shared memory.- Parameters:
max_dyn_smem_bytes – [out] Maximum dynamic shared memory that can be allocated. Set to -1 in case of error.
kernel_ptr – [in] Kernel pointer for which to compute the maximum potential dynamic shared memory.