From 0a8d4ee78d9f0dbd1da42171b5769da644e9f2f3 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 25 Sep 2018 15:01:11 -0400
Subject: [PATCH] P4 to Git Change 1610499 by skudchad@skudchad-lnx on
2018/09/25 14:43:35
SWDEV-145570 - [HIP] - Map hipinfo sample from HIP mirror so that we have the same hipinfo
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_peer.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/tools/hipinfo/CMakeLists.txt#2 edit
... //depot/stg/opencl/drivers/opencl/tools/hipinfo/build/Makefile.hipinfo#2 edit
... //depot/stg/opencl/drivers/opencl/tools/hipinfo/hipinfo.cpp#2 delete
---
api/hip/hip_peer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/hip/hip_peer.cpp b/api/hip/hip_peer.cpp
index 73919a09ea..9c2da315ca 100644
--- a/api/hip/hip_peer.cpp
+++ b/api/hip/hip_peer.cpp
@@ -53,9 +53,9 @@ hipError_t hipMemcpyPeerAsync(void* dst, hipCtx_t dstDevice, const void* src, hi
hipError_t hipDeviceCanAccessPeer(int* canAccessPeer, int deviceId, int peerDeviceId) {
HIP_INIT_API(canAccessPeer, deviceId, peerDeviceId);
- assert(0 && "Unimplemented");
+ *canAccessPeer = 0;
- HIP_RETURN(hipErrorUnknown);
+ return hipErrorInvalidDevice;
}
hipError_t hipDeviceDisablePeerAccess(int peerDeviceId) {