From b6ffd24006f080dd7e31a8ec6cf97faddad94828 Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Wed, 25 Oct 2023 16:56:25 +0000 Subject: [PATCH] SWDEV-428567 - Catch Test for hipMemcpyDeviceToDeviceNoCU Change-Id: I8769053eec2b8345023f78f730a1c28df3a1bda6 [ROCm/hip-tests commit: 12c49096d6e45cfd3d7516730e49f18da8618944] --- .../catch/unit/memory/hipMemcpyAsync.cc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyAsync.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyAsync.cc index cd88356408..a57449e84f 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyAsync.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyAsync.cc @@ -34,22 +34,13 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Basic") { MemcpyWithDirectionCommonTests(std::bind(hipMemcpyAsync, _1, _2, _3, _4, stream)); } - TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") { using namespace std::placeholders; HIP_CHECK(hipDeviceSynchronize()); SECTION("Host memory to device memory") { - // This behavior differs on NVIDIA and AMD, on AMD the hipMemcpy calls is synchronous with - // respect to the host -#if HT_AMD - HipTest::HIP_SKIP_TEST( - "EXSWCPHIPT-127 - MemcpyAsync from host to device memory behavior differs on AMD and " - "Nvidia"); - return; -#endif MemcpyHtoDSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToDevice, nullptr), - false); + true); } SECTION("Device memory to pageable host memory") { @@ -67,6 +58,11 @@ TEST_CASE("Unit_hipMemcpyAsync_Positive_Synchronization_Behavior") { false); } + SECTION("Device memory to device Memory No CU") { + MemcpyDtoDSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyDeviceToDeviceNoCU, + nullptr),false); + } + SECTION("Host memory to host memory") { MemcpyHtoHSyncBehavior(std::bind(hipMemcpyAsync, _1, _2, _3, hipMemcpyHostToHost, nullptr), true);