Loading source/adios2/helper/adiosKokkos.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,15 @@ bool IsGPUbuffer(const void *ptr) { return true; } #endif #ifdef ADIOS2_HAVE_KOKKOS_HIP hipError_t ret; hipPointerAttribute_t attr; ret = hipPointerGetAttributes(&attr, ptr); if (ret == hipSuccess && attr.memoryType == hipMemoryTypeDevice) { return true; } #endif return false; } Loading Loading
source/adios2/helper/adiosKokkos.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,15 @@ bool IsGPUbuffer(const void *ptr) { return true; } #endif #ifdef ADIOS2_HAVE_KOKKOS_HIP hipError_t ret; hipPointerAttribute_t attr; ret = hipPointerGetAttributes(&attr, ptr); if (ret == hipSuccess && attr.memoryType == hipMemoryTypeDevice) { return true; } #endif return false; } Loading