Skip to main content

cudaDeviceSetLimit

Function cudaDeviceSetLimit 

Source
pub unsafe extern "C" fn cudaDeviceSetLimit(
    limit: cudaLimit,
    value: size_t,
) -> cudaError_t
Expand description

Set resource limits.

Setting limit to value is a request by the application to update the current limit maintained by the device. The driver is free to modify the requested value to meet h/w requirements (this could be clamping to minimum or maximum values, rounding up to nearest element size, etc). The application can use cudaDeviceGetLimit to find out exactly what the limit has been set to.

Setting each cudaLimit has its own specific restrictions, so each is discussed here.

ยงParameters

  • limit: Limit to set.
  • value: Size of limit.