Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kokkos version #3

Open
sergeylesnik opened this issue Apr 23, 2024 · 0 comments
Open

Kokkos version #3

sergeylesnik opened this issue Apr 23, 2024 · 0 comments

Comments

@sergeylesnik
Copy link

I have some trouble compiling grit. The first error:

/home/sles/proj/inno4Scale/grit/src/Goethite.h: In static member function ‘static void Goethite<NX, NY, NZ, NH>::depositVectr3(Yarn::VectorFieldType, Dust::LocationVecType, Dust::PointHealthType, Dust::Vectr3PointType)’:
/home/sles/proj/inno4Scale/grit/src/Goethite.h:69:16: error: ‘Yarn::VectorFieldType’ {aka ‘class Kokkos::View<double**>’} has no member named ‘dimension_0’; did you mean ‘dimension’?
   69 |       assert(F.dimension_0()==(NX+1+2*NH)*(NY+1+2*NH)*(NZ+1+2*NH));
      |                ^~~~~~~~~~~

and the second:

/home/sles/cmake/kokkos/install-S/include/impl/Kokkos_FunctorAnalysis.hpp: In instantiation of ‘struct Kokkos::Impl::FunctorAnalysis<Kokkos::Impl::FunctorPatternInterface::REDUCE, Kokkos::RangePolicy<Kokkos::OpenMP>, calcmax, double>::DeduceJoinNoTag<calcmax, void>’:
/home/sles/cmake/kokkos/install-S/include/impl/Kokkos_FunctorAnalysis.hpp:640:10:   required from ‘struct Kokkos::Impl::FunctorAnalysis<Kokkos::Impl::FunctorPatternInterface::REDUCE, Kokkos::RangePolicy<Kokkos::OpenMP>, calcmax, double>::DeduceJoin<calcmax, void>’
/home/sles/cmake/kokkos/install-S/include/impl/Kokkos_FunctorAnalysis.hpp:895:8:   required from ‘struct Kokkos::Impl::FunctorAnalysis<Kokkos::Impl::FunctorPatternInterface::REDUCE, Kokkos::RangePolicy<Kokkos::OpenMP>, calcmax, double>’
/home/sles/cmake/kokkos/install-S/include/Kokkos_Parallel_Reduce.hpp:1526:71:   required from ‘constexpr const bool Kokkos::Impl::ParallelReduceAdaptor<Kokkos::RangePolicy<Kokkos::OpenMP>, calcmax, double>::is_array_reduction’
/home/sles/cmake/kokkos/install-S/include/Kokkos_Parallel_Reduce.hpp:1529:55:   required from ‘struct Kokkos::Impl::ParallelReduceAdaptor<Kokkos::RangePolicy<Kokkos::OpenMP>, calcmax, double>’
/home/sles/cmake/kokkos/install-S/include/Kokkos_Parallel_Reduce.hpp:1710:77:   required from ‘std::enable_if_t<(!((Kokkos::is_view<Arg>::value || Kokkos::is_reducer<ReturnType>::value) || std::is_pointer<_Dp>::value))> Kokkos::parallel_reduce(const size_t&, const FunctorType&, ReturnType&) [with FunctorType = calcmax; ReturnType = double; std::enable_if_t<(!((Kokkos::is_view<Arg>::value || Kokkos::is_reducer<ReturnType>::value) || std::is_pointer<_Dp>::value))> = void; size_t = long unsigned int]’
/home/sles/proj/inno4Scale/grit/src/SpigotControlTest.C:142:47:   required from here
/home/sles/cmake/kokkos/install-S/include/impl/Kokkos_FunctorAnalysis.hpp:634:25: error: static assertion failed: Reducer with a join() operator taking volatile-qualified parameters is no longer supported

The first one goes away when built as release. The second one is still there.
I use Kokkos 4.3.0. What version is recommended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant