Added support for hipMemGetAddressRange
Change-Id: I99a796a4eb765152cf15a12d6a86b58684d34f50
このコミットが含まれているのは:
@@ -1281,6 +1281,18 @@ hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags);
|
||||
*/
|
||||
hipError_t hipDeviceDisablePeerAccess (int peerDeviceId);
|
||||
|
||||
/**
|
||||
* @brief Get information on memory allocations.
|
||||
*
|
||||
* @param [out] pbase - BAse pointer address
|
||||
* @param [out] psize - Size of allocation
|
||||
* @param [in] dptr- Device Pointer
|
||||
*
|
||||
* @returns #hipSuccess, #hipErrorInvalidDevicePointer
|
||||
*
|
||||
* @see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
|
||||
*/
|
||||
hipError_t hipMemGetAddressRange ( hipDeviceptr_t* pbase, size_t* psize, hipDeviceptr_t dptr );
|
||||
|
||||
#ifndef USE_PEER_NON_UNIFIED
|
||||
#define USE_PEER_NON_UNIFIED 1
|
||||
|
||||
@@ -639,6 +639,11 @@ inline static hipError_t hipCtxEnablePeerAccess ( hipCtx_t peerCtx, unsigned in
|
||||
return hipCUResultTohipError(cuCtxEnablePeerAccess(peerCtx, flags));
|
||||
}
|
||||
|
||||
inline static hipError_t hipMemGetAddressRange ( hipDeviceptr_t* pbase, size_t* psize, hipDeviceptr_t dptr )
|
||||
{
|
||||
return hipCUResultTohipError(cuMemGetAddressRange( pbase , psize , dptr));
|
||||
}
|
||||
|
||||
inline static hipError_t hipMemcpyPeer ( void* dst, int dstDevice, const void* src, int srcDevice, size_t count )
|
||||
{
|
||||
return hipCUDAErrorTohipError(cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count));
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする