SWDEV-371332 - [ABI Break]remove if def for cu/cuda memtype

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I0754ef8bc7c9384bab65599a41719de0fd71b415
This commit is contained in:
sdashmiz
2023-10-06 19:08:16 -04:00
committed by Rakesh Roy
parent baaaff9d7f
commit bfa6d77ce5
3 changed files with 8 additions and 28 deletions
-8
View File
@@ -96,19 +96,11 @@ TEST_CASE("Unit_hipPtrGetAttribute_Simple") {
unsigned int datatype;
HIP_CHECK(hipPointerGetAttribute(&datatype, HIP_POINTER_ATTRIBUTE_MEMORY_TYPE,
reinterpret_cast<hipDeviceptr_t>(A_d)));
#ifdef __HIP_PLATFORM_NVCC__
REQUIRE(datatype == CU_MEMORYTYPE_DEVICE);
#else
REQUIRE(datatype == hipMemoryTypeDevice);
#endif
HIP_CHECK(hipPointerGetAttribute(&datatype, HIP_POINTER_ATTRIBUTE_MEMORY_TYPE,
reinterpret_cast<hipDeviceptr_t>(A_Pinned_h)));
#ifdef __HIP_PLATFORM_NVCC__
REQUIRE(datatype == CU_MEMORYTYPE_HOST);
#else
REQUIRE(datatype == hipMemoryTypeHost);
#endif
// HIP_POINTER_ATTRIBUTE_IS_MANAGED
bool isHmm;