diff --git a/catch/unit/memory/hipMemcpyAsync_derivatives.cc b/catch/unit/memory/hipMemcpyAsync_derivatives.cc index b2583d1ccc..1fabfd3785 100644 --- a/catch/unit/memory/hipMemcpyAsync_derivatives.cc +++ b/catch/unit/memory/hipMemcpyAsync_derivatives.cc @@ -133,14 +133,14 @@ TEST_CASE("Unit_hipMemcpyDtoDAsync_Positive_Basic") { [stream = stream_guard.stream()](void* dst, void* src, size_t count) { return hipMemcpyDtoDAsync(reinterpret_cast(dst), reinterpret_cast(src), count, stream); - }); + }, stream_guard.stream()); } SECTION("Peer access disabled") { MemcpyDeviceToDeviceShell( [stream = stream_guard.stream()](void* dst, void* src, size_t count) { return hipMemcpyDtoDAsync(reinterpret_cast(dst), reinterpret_cast(src), count, stream); - }); + }, stream_guard.stream()); } } }