SWDEV-411680 - Skip if p2p access is not supported. (#377)

Change-Id: Ib4d49f9cfc92ea05d799b4a7d5e688fe8790c77e
Этот коммит содержится в:
ROCm CI Service Account
2023-08-14 21:26:31 +05:30
коммит произвёл GitHub
родитель ec88eca484
Коммит fced17ddce
+4 -2
Просмотреть файл
@@ -180,8 +180,10 @@ void Memcpy3DDeviceToDeviceShell(F memcpy_func, const hipStream_t kernel_stream
int can_access_peer = 0;
HIP_CHECK(hipDeviceCanAccessPeer(&can_access_peer, src_device, dst_device));
if (!can_access_peer) {
INFO("Peer access cannot be enabled between devices " << src_device << " " << dst_device);
REQUIRE(can_access_peer);
std::string msg = "Skipped as peer access cannot be enabled between devices " +
std::to_string(src_device) + " " + std::to_string(dst_device);
HipTest::HIP_SKIP_TEST(msg.c_str());
return;
}
HIP_CHECK(hipDeviceEnablePeerAccess(dst_device, 0));
}