From 909f353400141fb435d3256f9ab0bbdb04f2c645 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 [ROCm/clr commit: 8d912e037a8ba263659aef726bcc28fb68e50209] --- projects/clr/hipamd/api/hip/hip_peer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/api/hip/hip_peer.cpp b/projects/clr/hipamd/api/hip/hip_peer.cpp index 73919a09ea..9c2da315ca 100644 --- a/projects/clr/hipamd/api/hip/hip_peer.cpp +++ b/projects/clr/hipamd/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) {