SWDEV-479807 - Skip if peer access is not supported.

Change-Id: I2a40976e7e1a4c86c41ea86e87359c7d4b85c6d8
This commit is contained in:
Jaydeep Patel
2024-08-20 10:52:08 +00:00
committed by Rakesh Roy
parent d1d8b1e08e
commit 2f067487d2
18 changed files with 41 additions and 10 deletions
@@ -252,6 +252,11 @@ bool testhipLinkTypeHopcountDevice(int numDevices) {
}
for (auto pos=devicePairList.begin();
pos != devicePairList.end(); pos++) {
int can_access_peer = 0;
HIP_CHECK(hipDeviceCanAccessPeer(&can_access_peer, (*pos).device1, (*pos).device2));
if (!can_access_peer) {
continue;
}
uint32_t linktype1 = 0;
uint32_t hopcount1 = 0;
RSMI_IO_LINK_TYPE linktype2 = RSMI_IOLINK_TYPE_UNDEFINED;