From f10981bbbc2042b6a58f922ff71de8238ffb4f82 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 6 Feb 2023 02:44:20 +0530 Subject: [PATCH] SWDEV-371332 - remove check for non device pointers (#145) Change-Id: Ib7e83ab1bca8c61e3710cb9dd75d9f932159476a --- catch/unit/memory/hipPointerGetAttributes.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/catch/unit/memory/hipPointerGetAttributes.cc b/catch/unit/memory/hipPointerGetAttributes.cc index d4ba5960ce..cbc4554b3a 100644 --- a/catch/unit/memory/hipPointerGetAttributes.cc +++ b/catch/unit/memory/hipPointerGetAttributes.cc @@ -260,8 +260,6 @@ TEST_CASE("Unit_hipPointerGetAttributes_Basic") { REQUIRE(attribs.devicePointer != attribs2.devicePointer); } HIP_CHECK(hipFree(A_d)); - e = hipPointerGetAttributes(&attribs, A_d); - REQUIRE(e == hipErrorInvalidValue); // Device-visible host memory printf("\nDevice-visible host memory (hipHostMalloc)\n"); @@ -272,15 +270,10 @@ TEST_CASE("Unit_hipPointerGetAttributes_Basic") { char* ptr1 = reinterpret_cast(attribs.hostPointer); REQUIRE((ptr1 + Nbytes / 2) == reinterpret_cast(attribs2.hostPointer)); - HIP_CHECK(hipHostFree(A_Pinned_h)); - e = hipPointerGetAttributes(&attribs, A_Pinned_h); - REQUIRE(e == hipErrorInvalidValue); // OS memory printf("\nOS-allocated memory (malloc)\n"); - e = hipPointerGetAttributes(&attribs, A_OSAlloc_h); - REQUIRE(e == hipErrorInvalidValue); } TEST_CASE("Unit_hipPointerGetAttributes_ClusterAlloc") {