From 9083aaa30add22adde6665f6e6e62139da5f835e Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 11:15:26 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipDrvMemcpy3D.cc [ROCm/hip commit: 7fc4b7d6f45efc9df7244d89d010e5baad188ab8] --- projects/hip/tests/catch/unit/memory/hipDrvMemcpy3D.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/catch/unit/memory/hipDrvMemcpy3D.cc b/projects/hip/tests/catch/unit/memory/hipDrvMemcpy3D.cc index b70c8f74b1..0b524655a9 100644 --- a/projects/hip/tests/catch/unit/memory/hipDrvMemcpy3D.cc +++ b/projects/hip/tests/catch/unit/memory/hipDrvMemcpy3D.cc @@ -501,8 +501,8 @@ void DrvMemcpy3D::HostArray_DrvMemcpy3D(bool device_context_change) { /* DeAllocating the memory */ template void DrvMemcpy3D::DeAllocateMemory() { - hipArrayDestroy(arr); - hipArrayDestroy(arr1); + HIP_CHECK(hipArrayDestroy(arr)); + HIP_CHECK(hipArrayDestroy(arr1)); free(hData); }