pub unsafe extern "C" fn hipDeviceSetLimit(
limit: hipLimit_t,
value: usize,
) -> hipError_t
Expand description
@brief Sets resource limits of current device.
As the input enum limit, #hipLimitStackSize sets the limit value of the stack size on the current GPU device, per thread. The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit (128K - 16).
#hipLimitMallocHeapSize sets the limit value of the heap used by the malloc()/free() calls. For limit size, use the #hipDeviceGetLimit API.
Any other input as default, the funtion will return hipErrorUnsupportedLimit.
@param [in] limit Enum of hipLimit_t to set @param [in] value The size of limit value in bytes
@returns #hipSuccess, #hipErrorUnsupportedLimit, #hipErrorInvalidValue