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

Change-Id: I8b931a92fc97c68556d74332984ddf17c53df7d4
이 커밋은 다음에 포함됨:
ROCm CI Service Account
2023-02-28 10:50:57 +05:30
커밋한 사람 GitHub
부모 6ef967abd7
커밋 92f0da368f
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));
}