hipdevicecanaccesspeer Interface Reference

hipdevicecanaccesspeer Interface Reference#

HIPFORT API Reference: hipfort::hipdevicecanaccesspeer Interface Reference
hipfort::hipdevicecanaccesspeer Interface Reference

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

Public Member Functions

integer(kind(hipsuccess)) function hipdevicecanaccesspeer_ (canAccessPeer, deviceId, peerDeviceId)
 

Detailed Description

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

Parameters
[out]canAccessPeerReturns the peer access capability (0 or 1)
[in]device- device from where memory may be accessed.
[in]peerDevice- device where memory is physically located

Returns "1" in canAccessPeer if the specified device is capable of directly accessing memory physically located on peerDevice , or "0" if not.

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

Returns
hipSuccess,
hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices

Member Function/Subroutine Documentation

◆ hipdevicecanaccesspeer_()

integer(kind(hipsuccess)) function hipfort::hipdevicecanaccesspeer::hipdevicecanaccesspeer_ ( type(c_ptr), value  canAccessPeer,
integer(c_int), value  deviceId,
integer(c_int), value  peerDeviceId 
)

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