From 66aff23bb1a853706433bba39817bb6d7f7b61fd Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Thu, 30 Jun 2022 16:11:49 -0400 Subject: [PATCH] SWDEV-344165 - correct wrong output some attributes retruns wrong values Signed-off-by: sdashmiz Change-Id: I75ba08cb07aa4abdb48e2e20ad7f58be7422158f [ROCm/clr commit: 2b9e39e901f23c66f91b7bff53be0555d78bb572] --- projects/clr/hipamd/src/hip_peer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_peer.cpp b/projects/clr/hipamd/src/hip_peer.cpp index c5e9c2f5f5..fb6b332942 100644 --- a/projects/clr/hipamd/src/hip_peer.cpp +++ b/projects/clr/hipamd/src/hip_peer.cpp @@ -139,7 +139,7 @@ hipError_t hipDeviceGetP2PAttribute(int* value, hipDeviceP2PAttr attr, break; } case hipDevP2PAttrNativeAtomicSupported : { - link_attrs.push_back(std::make_pair(amd::Device::LinkAttribute::kLinkLinkType, 0)); + link_attrs.push_back(std::make_pair(amd::Device::LinkAttribute::kLinkAtomicSupport, 0)); break; } case hipDevP2PAttrHipArrayAccessSupported : { @@ -154,7 +154,7 @@ hipError_t hipDeviceGetP2PAttribute(int* value, hipDeviceP2PAttr attr, if (srcDeviceProp.gcnArch == dstDeviceProp.gcnArch) { HIP_RETURN_ONFAIL(canAccessPeer(value, srcDevice, dstDevice)); } else { - value = 0; + *value = 0; } break; }