From a4c93871b5edb4bcff6d9bece7b9ef38ace577c2 Mon Sep 17 00:00:00 2001 From: "Patel, Jaydeepkumar" Date: Wed, 30 Jul 2025 21:21:56 +0530 Subject: [PATCH] SWDEV-534016 - Change error code as per current CLR logic (#207) Change error code as per current CLR logic. Intra device async memcpy in 2 diff threads can't sync by CLR internals, It needs to be handled by app/test. --- .../executionControl/hipExtLaunchMultiKernelMultiDevice.cc | 2 +- catch/unit/stream/hipStreamLegacy_Ext.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/catch/unit/executionControl/hipExtLaunchMultiKernelMultiDevice.cc b/catch/unit/executionControl/hipExtLaunchMultiKernelMultiDevice.cc index fd1dcc8295..2c19a33d15 100644 --- a/catch/unit/executionControl/hipExtLaunchMultiKernelMultiDevice.cc +++ b/catch/unit/executionControl/hipExtLaunchMultiKernelMultiDevice.cc @@ -141,4 +141,4 @@ TEST_CASE("Unit_hipExtLaunchMultiKernelMultiDevice_Negative_MultiKernelSameDevic for (const auto params : params_list) { HIP_CHECK(hipStreamDestroy(params.stream)); } -} \ No newline at end of file +} diff --git a/catch/unit/stream/hipStreamLegacy_Ext.cc b/catch/unit/stream/hipStreamLegacy_Ext.cc index 9b7b1d5542..0f7c643275 100644 --- a/catch/unit/stream/hipStreamLegacy_Ext.cc +++ b/catch/unit/stream/hipStreamLegacy_Ext.cc @@ -731,9 +731,8 @@ TEST_CASE("Unit_hipStreamLegacy_TwoThreadsInTwoDevicesEachOneDiffOperation") { HIP_CHECK(hipSetDevice(0)); std::thread dev0Thread(operationsInDev0, devArrDev0, devArrDev1); - std::thread dev1Thread(operationsInDev1, devArrDev1, hostArrDst); - dev0Thread.join(); + std::thread dev1Thread(operationsInDev1, devArrDev1, hostArrDst); dev1Thread.join(); for ( int i = 0; i < N; i++ ) {