HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Device Memory Access

Functions

hipError_t hipDeviceCanAccessPeer (int *canAccessPeer, int device, int peerDevice)
 Determine if a device can access a peer's memory. More...
 
hipError_t hipDeviceDisablePeerAccess (int peerDevice)
 
hipError_t hipDeviceEnablePeerAccess (int peerDevice, unsigned int flags)
 
hipError_t hipMemcpyPeer (void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes)
 
hipError_t hipMemcpyPeerAsync (void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream=0)
 

Detailed Description

----------------------------------------------------------------------------------------------—

Function Documentation

hipError_t hipDeviceCanAccessPeer ( int *  canAccessPeer,
int  device,
int  peerDevice 
)

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

Parameters
[out]canAccessPeerreturns true if specified devices are peers.
[in]device
[in]peerDeviceReturns "1" in canAccessPeer if the specified device is capable of directly accessing memory phyically located on peerDevice , or "0" if not.
Warning
HCC returns 0 in *canAccessPeer ; Need to update this function when RT supports P2P
hipError_t hipDeviceDisablePeerAccess ( int  peerDevice)
Warning
Need to update this function when RT supports P2P
hipError_t hipDeviceEnablePeerAccess ( int  peerDevice,
unsigned int  flags 
)
Warning
Need to update this function when RT supports P2P
hipError_t hipMemcpyPeerAsync ( void *  dst,
int  dstDevice,
const void *  src,
int  srcDevice,
size_t  sizeBytes,
hipStream_t  stream 
)
Bug:
This function uses a synchronous copy