Revert "SWDEV-264166 - [ABI Break] goodbye gcnArch, hello gcnArchName"
This reverts commit f136a576f5.
Change-Id: Ia7b9ca115be4f9591b195194eed967fc6c330012
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user