From 1ab7f46fdad243821dccef2ef64f0bc7a03092b0 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 29 Jun 2023 09:04:53 +0530 Subject: [PATCH] SWDEV-398980 - Fix Unit_hipMemcpyPeer_Positive_Synchronization_Behavior (#335) Change-Id: I8ed51134a351f5303c10c9cfad8485e1493bec4d --- catch/hipTestMain/config/config_amd_linux_common.json | 2 -- catch/unit/memory/hipMemcpyPeer.cc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/catch/hipTestMain/config/config_amd_linux_common.json b/catch/hipTestMain/config/config_amd_linux_common.json index a360f7fb16..1a7f2056c7 100644 --- a/catch/hipTestMain/config/config_amd_linux_common.json +++ b/catch/hipTestMain/config/config_amd_linux_common.json @@ -63,8 +63,6 @@ "Unit_hipMemcpyWithStream_MultiThread", "SWDEV-398977 fails in stress tests", "Unit_hipMemset2DSync", - "SWDEV-398980 fails in Stress test", - "Unit_hipMemcpyPeer_Positive_Synchronization_Behavior", "SWDEV-398981 fails in stress test", "Unit_hipStreamCreateWithPriority_MulthreadDefaultflag", "=== Below tests fail in stress test on 23/06/23 ===", diff --git a/catch/unit/memory/hipMemcpyPeer.cc b/catch/unit/memory/hipMemcpyPeer.cc index 95698b63df..c04a84c027 100644 --- a/catch/unit/memory/hipMemcpyPeer.cc +++ b/catch/unit/memory/hipMemcpyPeer.cc @@ -125,6 +125,7 @@ TEST_CASE("Unit_hipMemcpyPeer_Positive_Synchronization_Behavior") { LinearAllocGuard src_alloc(LinearAllocs::hipMalloc, kPageSize); HIP_CHECK(hipSetDevice(dst_device)); LinearAllocGuard dst_alloc(LinearAllocs::hipMalloc, kPageSize); + LaunchDelayKernel(std::chrono::milliseconds{100}, nullptr); HIP_CHECK(hipSetDevice(src_device)); LaunchDelayKernel(std::chrono::milliseconds{100}, nullptr);