From 3fcc42d05eb19d92fa65ccb087c0519b780badb8 Mon Sep 17 00:00:00 2001 From: Sarbojit2019 <52527887+SarbojitAMD@users.noreply.github.com> Date: Tue, 11 Jan 2022 13:50:49 +0530 Subject: [PATCH] SWDEV-310181 - Fix for memcpy3D test failure (#2455) --- tests/catch/unit/memory/hipMemcpy3D.cc | 1 + tests/catch/unit/memory/hipMemcpy3DAsync.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/catch/unit/memory/hipMemcpy3D.cc b/tests/catch/unit/memory/hipMemcpy3D.cc index 1fa4ce0576..75fc8efe0c 100644 --- a/tests/catch/unit/memory/hipMemcpy3D.cc +++ b/tests/catch/unit/memory/hipMemcpy3D.cc @@ -272,6 +272,7 @@ void Memcpy3D::NegativeTests() { AllocateMemory(); // Initialization of data + memset(&myparms, 0, sizeof(myparms)); myparms.srcPos = make_hipPos(0, 0, 0); myparms.dstPos = make_hipPos(0, 0, 0); myparms.extent = make_hipExtent(width , height, depth); diff --git a/tests/catch/unit/memory/hipMemcpy3DAsync.cc b/tests/catch/unit/memory/hipMemcpy3DAsync.cc index 017556967c..fb2fa8e1dc 100644 --- a/tests/catch/unit/memory/hipMemcpy3DAsync.cc +++ b/tests/catch/unit/memory/hipMemcpy3DAsync.cc @@ -290,6 +290,7 @@ void Memcpy3DAsync::NegativeTests() { HIP_CHECK(hipStreamCreate(&stream)); // Initialization of data + memset(&myparms, 0, sizeof(myparms)); myparms.srcPos = make_hipPos(0, 0, 0); myparms.dstPos = make_hipPos(0, 0, 0); myparms.extent = make_hipExtent(width , height, depth);