SWDEV-344165 - correct wrong output

some attributes retruns wrong values

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I75ba08cb07aa4abdb48e2e20ad7f58be7422158f
Cette révision appartient à :
sdashmiz a créé et Shadi Dashmiz a révisé 2022-07-11 10:11:25 -04:00
1 Parent 4e6e175f16
révision 2b9e39e901
1 fichier modifié
+2 -2
+2 -2
Voir le fichier
@@ -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;
}