SWDEV-415965 - Fixing uninitialized variable error for pitch_M and

update hipArray in hipGetLastError

Change-Id: I5656eaa666c0472fb852aa0f95ae1b75c98b60ab
This commit is contained in:
kjayapra-amd
2023-10-12 14:49:00 -04:00
committed by Rakesh Roy
parent 949cb688dd
commit baaaff9d7f
3 changed files with 4 additions and 2 deletions
@@ -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 ===",
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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);