hipdevicecanaccesspeer Interface Reference

hipdevicecanaccesspeer Interface Reference#

hipFORT API Reference: hipfort::hipdevicecanaccesspeer Interface Reference
hipfort::hipdevicecanaccesspeer Interface Reference

Determines if a device can access a peer device's memory. More...

Public Member Functions

integer(kind(hipsuccess)) function hipdevicecanaccesspeer_ (canaccesspeer, deviceid, peerdeviceid)
 

Detailed Description

Determines if a device can access a peer device's memory.



Parameters
[out]canAccessPeer- Returns the peer access capability (0 or 1)
[in]deviceId- The device accessing the peer device memory.
[in]peerDeviceId- Peer device where memory is physically located

The value of canAccessPeer,

Returns "1" if the specified deviceId is capable of directly accessing memory physically located on peerDeviceId,

Returns "0" if the specified deviceId is not capable of directly accessing memory physically located on peerDeviceId.

Returns "0" if deviceId == peerDeviceId, both are valid devices, however, a device is not a peer of itself.

Returns hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices

Returns
hipSuccess, hipErrorInvalidDevice

Member Function/Subroutine Documentation

◆ hipdevicecanaccesspeer_()

integer(kind(hipsuccess)) function hipfort::hipdevicecanaccesspeer::hipdevicecanaccesspeer_ ( integer(c_int)  canaccesspeer,
integer(c_int), value  deviceid,
integer(c_int), value  peerdeviceid 
)

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