Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anagainaru committed Jul 4, 2024
1 parent d176d61 commit dd98374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/adios2/helper/kokkos/adiosKokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ 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 defined(ROCM_VERSION_MAJOR) && ROCM_VERSION_MAJOR >= 6
if (ret == hipSuccess && attr.type == hipMemoryTypeDevice)
#else
if (ret == hipSuccess && attr.memoryType == hipMemoryTypeDevice)
#endif
{
return true;
Expand Down

0 comments on commit dd98374

Please sign in to comment.