hipdevicegetlimit Interface Reference

hipdevicegetlimit Interface Reference#

hipFORT API Reference: hipfort::hipdevicegetlimit Interface Reference
hipfort::hipdevicegetlimit Interface Reference

Gets resource limits of current device. More...

Public Member Functions

integer(c_int) function hipdevicegetlimit_ (pvalue, limit)
 
integer(kind(hipsuccess)) function hipdevicegetlimit_typed (pvalue, limit)
 

Detailed Description

Gets resource limits of current device.

The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either hipLimitStackSize, or hipLimitMallocHeapSize. Any other input as default, the function will return hipErrorUnsupportedLimit.

Parameters
[out]pValueReturns the size of the limit in bytes
[in]limitThe limit to query
Returns
hipSuccess, hipErrorUnsupportedLimit, hipErrorInvalidValue

Member Function/Subroutine Documentation

◆ hipdevicegetlimit_()

integer(c_int) function hipfort::hipdevicegetlimit::hipdevicegetlimit_ ( type(c_ptr), value  pvalue,
integer(c_int), value  limit 
)

◆ hipdevicegetlimit_typed()

integer(kind(hipsuccess)) function hipfort::hipdevicegetlimit::hipdevicegetlimit_typed ( integer(c_size_t), target  pvalue,
integer(kind(hiplimitstacksize))  limit 
)

The documentation for this interface was generated from the following file: