hipctxenablepeeraccess Interface Reference

hipctxenablepeeraccess Interface Reference#

HIPFORT API Reference: hipfort::hipctxenablepeeraccess Interface Reference
hipfort::hipctxenablepeeraccess Interface Reference

Enables direct access to memory allocations in a peer context [Deprecated]. More...

Public Member Functions

integer(kind(hipsuccess)) function hipctxenablepeeraccess_ (peerctx, flags)
 

Detailed Description

Enables direct access to memory allocations in a peer context [Deprecated].

Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.

Parameters
[in]peerCtxPeer context
[in]flagsflags, need to set as 0
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue, hipErrorPeerAccessAlreadyEnabled
See also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
Warning
PeerToPeer support is experimental.
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.

Member Function/Subroutine Documentation

◆ hipctxenablepeeraccess_()

integer(kind(hipsuccess)) function hipfort::hipctxenablepeeraccess::hipctxenablepeeraccess_ ( type(c_ptr), value  peerctx,
integer(c_int), value  flags 
)

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