Skip to content

Commit

Permalink
Merge pull request #65 from Rombur/hip_support
Browse files Browse the repository at this point in the history
Add support for HIP
  • Loading branch information
dalg24 authored May 14, 2024
2 parents 967d3de + 0b28a56 commit 6c6a25a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/flcl-cxx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ typedef struct _flcl_nd_array_t {
namespace flcl {
#ifdef KOKKOS_ENABLE_CUDA
using HostMemorySpace = Kokkos::CudaUVMSpace;
#elif defined(KOKKOS_ENABLE_HIP)
using HostMemorySpace = Kokkos::HIPManagedSpace;
#else
using HostMemorySpace = Kokkos::HostSpace;
#endif
Expand All @@ -75,6 +77,8 @@ namespace flcl {

#ifdef KOKKOS_ENABLE_CUDA
using HostMemorySpace = Kokkos::CudaUVMSpace;
#elif defined(KOKKOS_ENABLE_HIP)
using HostMemorySpace = Kokkos::HIPManagedSpace;
#else
using HostMemorySpace = Kokkos::HostSpace;
#endif
Expand Down

0 comments on commit 6c6a25a

Please sign in to comment.