Skip to main content

cuFuncSetSharedSize

Function cuFuncSetSharedSize 

Source
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

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