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

Change-Id: I4b31284243a801f92f0be9468c25db7d027d9a13


[ROCm/clr commit: f136a576f5]
This commit is contained in:
Jatin Chaudhary
2023-07-24 19:28:08 +01:00
committed by Jatin Jaikishan Chaudhary
parent 11873d4eff
commit 20add33513
3 changed files with 3 additions and 4 deletions
+3 -1
View File
@@ -151,7 +151,9 @@ 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;