From e83a40029010741da17615761da0ebfe9f0cf4e7 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 08:50:32 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpyAllApiNegative.cc [ROCm/hip commit: 3d349720b763afd5ea9163cb4ef89be3713099b3] --- .../hip/tests/catch/unit/memory/hipMemcpyAllApiNegative.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/catch/unit/memory/hipMemcpyAllApiNegative.cc b/projects/hip/tests/catch/unit/memory/hipMemcpyAllApiNegative.cc index 7ea39d30be..bb54701af8 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemcpyAllApiNegative.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemcpyAllApiNegative.cc @@ -150,7 +150,7 @@ TEST_CASE("Unit_hipMemcpy_NullCheck") { &A_h, &B_h, &C_h, NUM_ELM*sizeof(float)); hipStream_t stream; - hipStreamCreate(&stream); + HIP_CHECK(hipStreamCreate(&stream)); HIP_CHECK(hipMemcpy(A_d, C_h, NUM_ELM*sizeof(float), hipMemcpyHostToDevice)); @@ -240,7 +240,7 @@ TEST_CASE("Unit_hipMemcpy_HalfMemCopy") { &A_h, &B_h, &C_h, NUM_ELM*sizeof(float)); hipStream_t stream; - hipStreamCreate(&stream); + HIP_CHECK(hipStreamCreate(&stream)); SECTION("hipMemcpyHtoD half memory copy") { HIP_CHECK(hipMemcpyHtoD(hipDeviceptr_t(A_d), A_h,