SWDEV-272543 - Fix hipDeviceGetP2PAttribute when both devices are same
Change-Id: I3db17a962807565ea134e3cbcefa66d373e2d363
[ROCm/hip commit: 0d7cd231e8]
这个提交包含在:
1 父节点
c91bc2ba9e
当前提交
db0c3fdaaf
1 个文件已更改
+1
-1
@@ -122,7 +122,7 @@ hipError_t hipDeviceGetP2PAttribute(int* value, hipDeviceP2PAttr attr,
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
if (srcDevice >= static_cast<int>(g_devices.size())
|
||||
if (srcDevice == dstDevice || srcDevice >= static_cast<int>(g_devices.size())
|
||||
|| dstDevice >= static_cast<int>(g_devices.size())) {
|
||||
HIP_RETURN(hipErrorInvalidDevice);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户