From 4b43ff2ae64ff9795493bd43095eb9ba6e8877f5 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) [ROCm/hip-tests commit: 2551628cc016801b2e10945aac3985959c392e1e] --- projects/hip-tests/catch/unit/memory/hipMemcpy3D.cc | 1 + projects/hip-tests/catch/unit/memory/hipMemcpy3DAsync.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpy3D.cc b/projects/hip-tests/catch/unit/memory/hipMemcpy3D.cc index 1fa4ce0576..75fc8efe0c 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpy3D.cc +++ b/projects/hip-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/projects/hip-tests/catch/unit/memory/hipMemcpy3DAsync.cc b/projects/hip-tests/catch/unit/memory/hipMemcpy3DAsync.cc index 017556967c..fb2fa8e1dc 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpy3DAsync.cc +++ b/projects/hip-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);