From 7a9fa6f7fd27df97f1977a2b5ceb62fd365bf6b3 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 10 Oct 2022 20:54:27 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpy2DToArrayAsync.cc [ROCm/hip commit: 7cac37358a65f53a47dd9780cae77a6720c7a10c] --- .../hip/tests/catch/unit/memory/hipMemcpy2DToArrayAsync.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/catch/unit/memory/hipMemcpy2DToArrayAsync.cc b/projects/hip/tests/catch/unit/memory/hipMemcpy2DToArrayAsync.cc index 5145f28aa1..990b9c651e 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemcpy2DToArrayAsync.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemcpy2DToArrayAsync.cc @@ -216,7 +216,7 @@ TEST_CASE("Unit_hipMemcpy2DToArrayAsync_multiDevicePinnedHostMem") { HIP_CHECK(hipGetDeviceCount(&numDevices)); if (numDevices > 1) { int canAccessPeer = 0; - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { HIP_CHECK(hipSetDevice(0)); hipArray *A_d{nullptr}; @@ -278,7 +278,7 @@ TEST_CASE("Unit_hipMemcpy2DToArrayAsync_multiDeviceDeviceContextChange") { HIP_CHECK(hipGetDeviceCount(&numDevices)); if (numDevices > 1) { int canAccessPeer = 0; - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { HIP_CHECK(hipSetDevice(0)); hipArray *A_d{nullptr};