Function kn_cuda_sys::bindings::cuFuncSetSharedSize
source · pub unsafe extern "C" fn cuFuncSetSharedSize(
hfunc: CUfunction,
bytes: c_uint
) -> CUresultExpand description
\brief Sets the dynamic shared-memory size for the function
\deprecated
Sets through \p bytes the amount of dynamic shared memory that will be available to each thread block when the kernel given by \p hfunc is launched.
\param hfunc - Kernel to specify dynamic shared-memory size for \param bytes - Dynamic shared-memory size per thread in bytes
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_INVALID_VALUE \notefnerr
\sa ::cuFuncSetBlockShape, ::cuFuncSetCacheConfig, ::cuFuncGetAttribute, ::cuParamSetSize, ::cuParamSeti, ::cuParamSetf, ::cuParamSetv, ::cuLaunch, ::cuLaunchGrid, ::cuLaunchGridAsync, ::cuLaunchKernel