hipdevicesetlimit Interface Reference#
hipfort::hipdevicesetlimit Interface Reference
Sets resource limits of current device. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipdevicesetlimit_ (limit, myvalue) |
Detailed Description
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.
- Parameters
-
[in] limit Enum of hipLimit_t to set [in] value The size of limit value in bytes
- Returns
hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValue
Member Function/Subroutine Documentation
◆ hipdevicesetlimit_()
| integer(kind(hipsuccess)) function hipfort::hipdevicesetlimit::hipdevicesetlimit_ | ( | integer(kind(hiplimitstacksize)), value | limit, |
| integer(c_size_t), value | myvalue | ||
| ) |
The documentation for this interface was generated from the following file: