pub unsafe extern "C" fn cuFuncSetBlockShape(
hfunc: CUfunction,
x: c_int,
y: c_int,
z: c_int,
) -> CUresult👎Deprecated
Expand description
Sets the block-dimensions for the function.
Specifies the x, y, and z dimensions of the thread blocks that are created 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 dimensions of.x: X dimension.y: Y dimension.z: Z dimension.
§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: cuFuncSetSharedSize, cuFuncSetCacheConfig, cuFuncGetAttribute, cuParamSetSize, cuParamSeti, cuParamSetf, cuParamSetv, cuLaunch, cuLaunchGrid, cuLaunchGridAsync, cuLaunchKernel.