diff --git a/catch/unit/memory/hipMemcpyPeer.cc b/catch/unit/memory/hipMemcpyPeer.cc index a8ebe9534f..48e881895d 100644 --- a/catch/unit/memory/hipMemcpyPeer.cc +++ b/catch/unit/memory/hipMemcpyPeer.cc @@ -35,7 +35,7 @@ TEST_CASE("Unit_hipMemcpyPeer_Negative") { HIP_CHECK(hipGetDeviceCount(&numDevices)); if (numDevices > 1) { int canAccessPeer = 0; - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { // Initialization of variables int *A_d{nullptr}, *B_d{nullptr}; @@ -102,7 +102,7 @@ TEST_CASE("Unit_hipMemcpyPeer_Basic") { HIP_CHECK(hipGetDeviceCount(&numDevices)); if (numDevices > 1) { int canAccessPeer = 0; - hipDeviceCanAccessPeer(&canAccessPeer, 0, 1); + HIP_CHECK(hipDeviceCanAccessPeer(&canAccessPeer, 0, 1)); if (canAccessPeer) { int *A_d{nullptr}, *B_d{nullptr}, *C_d{nullptr}; int *X_d{nullptr}, *Y_d{nullptr}, *Z_d{nullptr};