SWDEV-264166 - Remove gcnArch

Change-Id: Ief4bdbdd5373adb73a291633067c9a8e11f05a32


[ROCm/clr commit: ab303e6440]
This commit is contained in:
Jason Tang authored and Jason Tang committed 2022-07-26 11:49:19 -04:00
1 parent f4642fc0d4
commit d12900e000
2 files changed
+2 -3

No files matched your search

+2 -1
View File
@@ -151,7 +151,8 @@ hipError_t hipDeviceGetP2PAttribute(int* value, hipDeviceP2PAttr attr,
// Linear layout access is supported if P2P is enabled
// Opaque Images are supported only on homogeneous systems
// Might have more conditions to check, in future.
if (srcDeviceProp.gcnArch == dstDeviceProp.gcnArch) {
if (0 == strncmp(srcDeviceProp.gcnArchName, dstDeviceProp.gcnArchName,
sizeof(srcDeviceProp.gcnArchName))) {
HIP_RETURN_ONFAIL(canAccessPeer(value, srcDevice, dstDevice));
} else {
*value = 0;