Revert "SWDEV-264166 - [ABI Break] goodbye gcnArch, hello gcnArchName"

This reverts commit f136a576f5.

Change-Id: Ia7b9ca115be4f9591b195194eed967fc6c330012
This commit is contained in:
Maneesh Gupta
2023-07-31 08:53:58 -04:00
parent 683c041a73
commit 8c89d16572
3 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -151,9 +151,7 @@ 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 ((0 ==
strncmp(srcDeviceProp.gcnArchName, dstDeviceProp.gcnArchName,
sizeof(srcDeviceProp.gcnArchName)))) {
if (srcDeviceProp.gcnArch == dstDeviceProp.gcnArch) {
HIP_RETURN_ONFAIL(canAccessPeer(value, srcDevice, dstDevice));
} else {
*value = 0;