From 87ea43b642f02b3888623e0164bfc2ba3fa0a128 Mon Sep 17 00:00:00 2001 From: "systems-assistant[bot]" <221163467+systems-assistant[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 15:52:36 +0530 Subject: [PATCH] SWDEV-540597 - Reset last error to avoid its impact in next iteration. (#558) * SWDEV-540597 - Reset last error to avoid its impact in next iteration. * SWDEV-540597 - Bypass compiler error as we need to call hipGetLastError without checking error to reset last error. --------- Co-authored-by: Jaydeep Patel --- projects/hip-tests/catch/unit/memory/hipMemcpyDtoD.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpyDtoD.cc b/projects/hip-tests/catch/unit/memory/hipMemcpyDtoD.cc index 7f93fff4f1..cf877cd78d 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpyDtoD.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpyDtoD.cc @@ -94,6 +94,7 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpyDtoD_Basic", "[multigpu]", int, float, HIP_CHECK(hipFree(X_d)); HIP_CHECK(hipFree(Y_d)); HIP_CHECK(hipFree(Z_d)); + (void)hipGetLastError(); } HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false); }