From 9f6072679eff44c1d586300a1250fd866fac9955 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 08:26:52 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpy2D.cc [ROCm/hip commit: 0492446e87bd403818776221336a2c78b556a217] --- projects/hip/tests/catch/unit/memory/hipMemcpy2D.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/catch/unit/memory/hipMemcpy2D.cc b/projects/hip/tests/catch/unit/memory/hipMemcpy2D.cc index 7d9a8e1ccc..27e011089c 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemcpy2D.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemcpy2D.cc @@ -135,7 +135,7 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpy2D_multiDevice-D2D", "" size_t width{NUM_W * sizeof(TestType)}; HIP_CHECK(hipGetDeviceCount(&numDevices)); if (numDevices > 1) { - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { HIP_CHECK(hipSetDevice(0));