SWDEV-371332 - remove check for non device pointers (#145)
Change-Id: Ib7e83ab1bca8c61e3710cb9dd75d9f932159476a
Tá an tiomantas seo le fáil i:
tiomanta ag
GitHub
tuismitheoir
7e331b2479
tiomantas
f10981bbbc
@@ -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") {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir