SWDEV-264166 - [ABI Break] goodbye gcnArch, hello gcnArchName
Change-Id: I4b31284243a801f92f0be9468c25db7d027d9a13
[ROCm/clr commit: f136a576f5]
This commit is contained in:
committed by
Jatin Jaikishan Chaudhary
parent
11873d4eff
commit
20add33513
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user