hipgetdevice Interface Reference

hipgetdevice Interface Reference#

hipFORT API Reference: hipfort::hipgetdevice Interface Reference
hipfort::hipgetdevice Interface Reference

Return the default device id for the calling host thread. More...

Public Member Functions

integer(c_int) function hipgetdevice_ (deviceid)
 
integer(kind(hipsuccess)) function hipgetdevice_typed (deviceid)
 

Detailed Description

Return the default device id for the calling host thread.

Parameters
[out]deviceId*device is written with the default device

HIP maintains an default device for each thread using thread-local-storage. This device is used implicitly for HIP runtime APIs called by this thread. hipGetDevice returns in * device the default device for the calling host thread.

Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
See also
hipSetDevice, hipGetDevicesizeBytes

Member Function/Subroutine Documentation

◆ hipgetdevice_()

integer(c_int) function hipfort::hipgetdevice::hipgetdevice_ ( type(c_ptr), value  deviceid)

◆ hipgetdevice_typed()

integer(kind(hipsuccess)) function hipfort::hipgetdevice::hipgetdevice_typed ( integer(c_int), target  deviceid)

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