From 9e384db16135c82c470c9fe9e1ac5221f2cf784f Mon Sep 17 00:00:00 2001 From: "Assiouras, Ioannis" Date: Tue, 20 May 2025 20:32:35 +0100 Subject: [PATCH] Remove invalid section that passes a destroyed stream in Unit_hipMemcpyPeerAsync_Negative_Parameters [ROCm/hip-tests commit: 3b98cef62a81e0b0ffd20863368fb4f28b1530d2] --- .../catch/unit/memory/hipMemcpyPeerAsync.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyPeerAsync.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyPeerAsync.cc index 3fb71dfd13..5e1b384ff6 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyPeerAsync.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyPeerAsync.cc @@ -258,11 +258,6 @@ TEST_CASE("Unit_hipMemcpyPeerAsync_Negative_Parameters") { const StreamGuard stream_guard(Streams::created); const hipStream_t stream = stream_guard.stream(); - constexpr auto InvalidStream = [] { - const StreamGuard sg(Streams::created); - return sg.stream(); - }; - int can_access_peer = 0; const auto src_device = 0; const auto dst_device = 1; @@ -307,13 +302,6 @@ TEST_CASE("Unit_hipMemcpyPeerAsync_Negative_Parameters") { kPageSize, stream), hipErrorInvalidDevice); } - - SECTION("Passing invalid Stream") { - HIP_CHECK_ERROR(hipMemcpyPeerAsync(dst_alloc.ptr(), dst_device, src_alloc.ptr(), src_device, - kPageSize, InvalidStream()), - hipErrorContextIsDestroyed); - } - HIP_CHECK(hipDeviceDisablePeerAccess(dst_device)); } else { INFO("Peer access cannot be enabled between devices " << src_device << " " << dst_device);