From 52c79e6b6323cec9f0c1962bc2d58189c54bbb1c Mon Sep 17 00:00:00 2001 From: agodavar Date: Sun, 11 Oct 2020 06:41:30 -0400 Subject: [PATCH] SWDEV-255853: CUDA device P2P attributes Change-Id: I7deffd04101b565f68a72a179f9faeaa22cab97d [ROCm/clr commit: e65bbb032977e34c48d1897296aa010458ebcd9b] --- .../clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h b/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h index 0a09a9b217..61f020cf17 100755 --- a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h @@ -303,6 +303,11 @@ typedef CUfunc_cache hipFuncCache; typedef CUjit_option hipJitOption; typedef CUdevice hipDevice_t; typedef enum cudaDeviceP2PAttr hipDeviceP2PAttr; +#define hipDevP2PAttrPerformanceRank cudaDevP2PAttrPerformanceRank +#define hipDevP2PAttrAccessSupported cudaDevP2PAttrAccessSupported +#define hipDevP2PAttrNativeAtomicSupported cudaDevP2PAttrNativeAtomicSupported +#define hipDevP2PAttrHipArrayAccessSupported cudaDevP2PAttrCudaArrayAccessSupported + typedef CUmodule hipModule_t; typedef CUfunction hipFunction_t; typedef CUdeviceptr hipDeviceptr_t;