SWDEV-382074 - Check for peer access. (#169)

Change-Id: I8b931a92fc97c68556d74332984ddf17c53df7d4


[ROCm/hip-tests commit: 92f0da368f]
このコミットが含まれているのは:
ROCm CI Service Account authored and GitHub committed 2023-02-27 21:20:57 -08:00
1 親 6414929098
コミット afd5fd4446
2ファイル変更
+11 -2

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -141,7 +141,7 @@ void MemcpyDeviceToDeviceShell(F memcpy_func, const hipStream_t kernel_stream =
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);
return;
}
HIP_CHECK(hipDeviceEnablePeerAccess(dst_device, 0));
}