SWDEV-479807 - Skip if peer access is not supported.
Change-Id: I2a40976e7e1a4c86c41ea86e87359c7d4b85c6d8
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Rakesh Roy
ebeveyn
d1d8b1e08e
işleme
2f067487d2
@@ -53,6 +53,15 @@ TEST_CASE("Unit_hipExtGetLinkTypeAndHopCount_Positive_Basic") {
|
||||
return;
|
||||
}
|
||||
|
||||
int can_access_peer = 0;
|
||||
HIP_CHECK(hipDeviceCanAccessPeer(&can_access_peer, device1, device2));
|
||||
if (!can_access_peer) {
|
||||
std::string msg = "Skipped as peer access is not supported between devices : " +
|
||||
std::to_string(device1) + " " + std::to_string(device2);
|
||||
HipTest::HIP_SKIP_TEST(msg.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t link_type1 = -1, hop_count1 = -1;
|
||||
uint32_t link_type2 = -1, hop_count2 = -1;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle