SWDEV-344165 - correct wrong output

some attributes retruns wrong values

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I75ba08cb07aa4abdb48e2e20ad7f58be7422158f


[ROCm/clr commit: 2b9e39e901]
Этот коммит содержится в:
sdashmiz
2022-06-30 16:11:49 -04:00
коммит произвёл Shadi Dashmiz
родитель 006c9b0ae8
Коммит 66aff23bb1
+2 -2
Просмотреть файл
@@ -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;
}