pub unsafe extern "C" fn cuFuncSetSharedSize(
hfunc: CUfunction,
bytes: c_uint,
) -> CUresult👎Deprecated
Expand description
Sets the dynamic shared-memory size for the function.
Sets through bytes the amount of dynamic shared memory that will be available to each thread block when the kernel given by hfunc is launched.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
hfunc: Kernel to specify dynamic shared-memory size for.bytes: Dynamic shared-memory size per thread in bytes.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_INVALID_VALUE
See also: cuFuncSetBlockShape, cuFuncSetCacheConfig, cuFuncGetAttribute, cuParamSetSize, cuParamSeti, cuParamSetf, cuParamSetv, cuLaunch, cuLaunchGrid, cuLaunchGridAsync, cuLaunchKernel.