hipgetdevicecount Interface Reference

hipgetdevicecount Interface Reference#

hipFORT API Reference: hipfort::hipgetdevicecount Interface Reference
hipfort::hipgetdevicecount Interface Reference

Return number of compute-capable devices. More...

Public Member Functions

integer(c_int) function hipgetdevicecount_ (count)
 
integer(kind(hipsuccess)) function hipgetdevicecount_typed (count)
 

Detailed Description

Return number of compute-capable devices.

Parameters
[out]countReturns number of compute-capable devices.
Returns
hipSuccess, hipErrorNoDevice

Returns in *count the number of devices that have ability to run compute commands. If there are no such devices, then hipGetDeviceCount will return hipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returns hipSuccess.

Member Function/Subroutine Documentation

◆ hipgetdevicecount_()

integer(c_int) function hipfort::hipgetdevicecount::hipgetdevicecount_ ( type(c_ptr), value  count)

◆ hipgetdevicecount_typed()

integer(kind(hipsuccess)) function hipfort::hipgetdevicecount::hipgetdevicecount_typed ( integer(c_int), target  count)

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