diff --git a/source/adios2/helper/kokkos/adiosKokkos.cpp b/source/adios2/helper/kokkos/adiosKokkos.cpp index d2619f0d49..24b8a0d7a7 100644 --- a/source/adios2/helper/kokkos/adiosKokkos.cpp +++ b/source/adios2/helper/kokkos/adiosKokkos.cpp @@ -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)