Skip to content

Commit

Permalink
Kokkos_HIP.cpp: include Kokkos_Core.hpp to resolve errors
Browse files Browse the repository at this point in the history
Resolves errors of form:
/home/jenkins/caraway-new/workspace/KokkosKernels_PullRequest_VEGA90A_ROCM560/kokkos/core/src/HIP/Kokkos_HIP.cpp:96:15: error: no member named 'hip_global_unique_token_locks' in namespace 'Kokkos::Impl'
  (void)Impl::hip_global_unique_token_locks(true);

Note: include of Kokkos_HIP_UniqueToken.hpp was insufficient as this triggered new errors:
/home/ndellin/kokkos/core/src/HIP/Kokkos_HIP_UniqueToken.hpp:40:29: error: implicit instantiation of undefined template 'Kokkos::View<unsigned int *, Kokkos::HIPSpace>'
  View<uint32_t*, HIPSpace> m_locks;
  • Loading branch information
ndellingwood committed Jan 16, 2024
1 parent 35a867d commit 256c0ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/HIP/Kokkos_HIP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define KOKKOS_IMPL_PUBLIC_INCLUDE
#endif

#include <Kokkos_Core.hpp>
#include <HIP/Kokkos_HIP.hpp>
#include <HIP/Kokkos_HIP_Instance.hpp>

Expand Down

0 comments on commit 256c0ca

Please sign in to comment.