From fcd62616da41badd9b5aedd07804d512cff2b8bc Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 08:28:19 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemcpy2DAsync.cc [ROCm/hip-tests commit: 1d1a4ddd3c8d5dbb273e210e83ffc97fdc93b53b] --- projects/hip-tests/catch/unit/memory/hipMemcpy2DAsync.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/hipMemcpy2DAsync.cc b/projects/hip-tests/catch/unit/memory/hipMemcpy2DAsync.cc index 10924687df..76b20ac574 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemcpy2DAsync.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemcpy2DAsync.cc @@ -160,7 +160,7 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpy2DAsync_multiDevice-Host&PinnedMem", "" hipStream_t stream; if (numDevices > 1) { - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { HIP_CHECK(hipSetDevice(0)); HIP_CHECK(hipStreamCreate(&stream)); @@ -250,7 +250,7 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpy2DAsync_multiDevice-StreamOnDiffDevice", "" hipStream_t stream; if (numDevices > 1) { - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { HIP_CHECK(hipSetDevice(0));