Skip to main content

cuFuncSetBlockShape

Function cuFuncSetBlockShape 

Source
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

See also: cuFuncSetSharedSize, cuFuncSetCacheConfig, cuFuncGetAttribute, cuParamSetSize, cuParamSeti, cuParamSetf, cuParamSetv, cuLaunch, cuLaunchGrid, cuLaunchGridAsync, cuLaunchKernel.