Skip to content

Commit

Permalink
Switch from ROCM_VERSION_MAJOR to HIP_VERSION_MAJOR (ornladios#4222)
Browse files Browse the repository at this point in the history
  • Loading branch information
anagainaru authored Jul 5, 2024
1 parent b30ca8b commit 1727527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adios2/helper/kokkos/adiosKokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool IsGPUbuffer(const void *ptr)
hipError_t ret;
hipPointerAttribute_t attr;
ret = hipPointerGetAttributes(&attr, ptr);
#if defined(ROCM_VERSION_MAJOR) && ROCM_VERSION_MAJOR < 6
#if defined(HIP_VERSION_MAJOR) && HIP_VERSION_MAJOR < 6
if (ret == hipSuccess && attr.memoryType == hipMemoryTypeDevice)
#else
if (ret == hipSuccess && attr.type == hipMemoryTypeDevice)
Expand Down

0 comments on commit 1727527

Please sign in to comment.