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(kind(hipsuccess)) function hipgetdevice_orig (deviceId)
 

Detailed Description

Return the default device id for the calling host thread.

Parameters
[out]devicedevice 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_orig()

integer(kind(hipsuccess)) function hipfort::hipgetdevice::hipgetdevice_orig ( integer(c_int)  deviceId)

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