From fb0c0e9949826797906118ef97645e58b12f7ed0 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 10 Oct 2022 21:22:01 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpy3DAsync.cc [ROCm/hip commit: a5b61aac747eaa8af5499c7c53b0a76f46206506] --- projects/hip/tests/catch/unit/memory/hipMemcpy3DAsync.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/hip/tests/catch/unit/memory/hipMemcpy3DAsync.cc b/projects/hip/tests/catch/unit/memory/hipMemcpy3DAsync.cc index 1f690fa410..451da3e4fc 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemcpy3DAsync.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemcpy3DAsync.cc @@ -109,10 +109,10 @@ void Memcpy3DAsync::AllocateMemory() { */ template void Memcpy3DAsync::DeAllocateMemory() { - hipFreeArray(arr); - hipFreeArray(arr1); + HIP_CHECK(hipFreeArray(arr)); + HIP_CHECK(hipFreeArray(arr1)); free(hData); - hipStreamDestroy(stream); + HIP_CHECK(hipStreamDestroy(stream)); } /*