Skip to content

Commit 686b3d7

Browse files
author
Hugh Delaney
committed
Change to HIP_VERSION macro
1 parent 2652a77 commit 686b3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adapters/hip/memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemGetInfo(ur_mem_handle_t hMemory,
274274
return AllocSize;
275275
} else if constexpr (std::is_same_v<T, SurfaceMem>) {
276276
HIP_ARRAY3D_DESCRIPTOR ArrayDescriptor;
277-
#if HIP_VERSION_MAJOR >= 5 && HIP_VERSION_MINOR >= 6
277+
#if HIP_VERSION >= 50600000
278278
UR_CHECK_ERROR(
279279
hipArray3DGetDescriptor(&ArrayDescriptor, Mem.getArray()));
280280
#else
@@ -541,7 +541,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageGetInfo(ur_mem_handle_t hMemory,
541541

542542
try {
543543
HIP_ARRAY3D_DESCRIPTOR ArrayInfo;
544-
#if HIP_VERSION_MAJOR >= 5 && HIP_VERSION_MINOR >= 6
544+
#if HIP_VERSION >= 50600000
545545
UR_CHECK_ERROR(hipArray3DGetDescriptor(
546546
&ArrayInfo, std::get<SurfaceMem>(hMemory->Mem).getArray()));
547547
#else

0 commit comments

Comments
 (0)