From baaaff9d7f82a6fb7f51299c932f2d7031454653 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Thu, 12 Oct 2023 14:49:00 -0400 Subject: [PATCH] SWDEV-415965 - Fixing uninitialized variable error for pitch_M and update hipArray in hipGetLastError Change-Id: I5656eaa666c0472fb852aa0f95ae1b75c98b60ab --- catch/hipTestMain/config/config_amd_linux | 2 ++ catch/unit/errorHandling/hipGetLastError.cc | 2 +- catch/unit/graph/hipGraphPerf.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/catch/hipTestMain/config/config_amd_linux b/catch/hipTestMain/config/config_amd_linux index 3c1fdb616e..047f6c5f05 100644 --- a/catch/hipTestMain/config/config_amd_linux +++ b/catch/hipTestMain/config/config_amd_linux @@ -143,6 +143,8 @@ "=== Below tests fail in stress test on 24/07/23 ===", "Unit_hipStreamCreateWithPriority_ValidateWithEvents", "Unit_hipEventIpc", + "=== SWDEV-427101:Below test fails randomly in PSDB ===", + "Unit_deviceAllocation_InOneThread_AccessInAllThreads", #endif #if defined VEGA20 "=== SWDEV-419112 Below tests fail in stress test on 29/08/23 ===", diff --git a/catch/unit/errorHandling/hipGetLastError.cc b/catch/unit/errorHandling/hipGetLastError.cc index bb1986fb1a..0ca215394d 100644 --- a/catch/unit/errorHandling/hipGetLastError.cc +++ b/catch/unit/errorHandling/hipGetLastError.cc @@ -285,7 +285,7 @@ TEST_CASE("Unit_hipGetLastError_with_hipDrvMemcpy3DAsync") { TEST_CASE("Unit_hipGetLastError_with_hipMemcpy3DAsync") { constexpr int width{10}, height{10}, depth{10}; auto size = width * height * depth * sizeof(int); - hipArray *devArray; + hipArray_t devArray; hipStream_t stream; HIP_CHECK(hipStreamCreate(&stream)); diff --git a/catch/unit/graph/hipGraphPerf.cc b/catch/unit/graph/hipGraphPerf.cc index 14e745bb99..b4508eee26 100644 --- a/catch/unit/graph/hipGraphPerf.cc +++ b/catch/unit/graph/hipGraphPerf.cc @@ -253,7 +253,7 @@ static void checkGraphMemcpyMemsetKernelMixCall(const unsigned int kNumIter) { hipGraphNode_t kNode[kNumIter]; hipGraph_t graph; hipGraphExec_t graphExec; - int pitch_M; + int pitch_M = 0; int *A_d, *B_d, *C_d, *A_h, *B_h, *C_h; HipTest::initArrays(&A_d, &B_d, &C_d, &A_h, &B_h, &C_h, N, false);