Skip to content

Commit

Permalink
Merge pull request ornladios#4214 from vicentebolea/enable-rocm6
Browse files Browse the repository at this point in the history
kokkos: support ROCM >=6
  • Loading branch information
vicentebolea authored Jun 28, 2024
2 parents 146bae1 + c718e99 commit d6e61c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/adios2/helper/kokkos/adiosKokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ 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 (ret == hipSuccess && attr.memoryType == hipMemoryTypeDevice)
#else
if (ret == hipSuccess && attr.type == hipMemoryTypeDevice)
#endif
{
return true;
}
Expand Down

0 comments on commit d6e61c8

Please sign in to comment.