SWDEV-371332 - remove check for non device pointers (#145)

Change-Id: Ib7e83ab1bca8c61e3710cb9dd75d9f932159476a
Tá an tiomantas seo le fáil i:
ROCm CI Service Account
2023-02-06 02:44:20 +05:30
tiomanta ag GitHub
tuismitheoir 7e331b2479
tiomantas f10981bbbc
-7
Féach ar an gComhad
@@ -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<char*>(attribs.hostPointer);
REQUIRE((ptr1 + Nbytes / 2) == reinterpret_cast<char*>(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") {