[Trilinos-Users] [12.2.1] MueLu/Kokkos OpenMP configuration/macros issue
Denis Davydov
davydden at gmail.com
Thu Sep 24 03:06:48 EDT 2015
Dear all,
There seems to be an issue when one try to use trilinos (in my case - compile deal.II against it)
compiled with -DTrilinos_ENABLE_OpenMP:BOOL=ON .
MueLu expects to know Kokkos::OpenMP class defined in Kokkos_OpenMP.hpp. As it’s clear from the error below that’s not the case.
In file included from /home/davydden/.linuxbrew/include/KokkosCompat_View.hpp:58:0,
from /home/davydden/.linuxbrew/include/KokkosCompat_ClassicNodeAPI_Wrapper.hpp:6,
from /home/davydden/.linuxbrew/include/Kokkos_DefaultNode.hpp:63,
from /home/davydden/.linuxbrew/include/MueLu_ConfigDefs.hpp:52,
from /home/davydden/.linuxbrew/include/MueLu.hpp:51,
from /home/davydden/Library/Temp/dealii20150918-21751-c9v0iv/source/lac/trilinos_precondition_muelu.cc:32:
/home/davydden/.linuxbrew/include/Kokkos_Core.hpp:179:65: error: 'memory_space' in 'Kokkos::DefaultExecutionSpace {aka class Kokkos::OpenMP}' does not name a type
template< class Space = typename Kokkos::DefaultExecutionSpace::memory_space >
^
/home/davydden/.linuxbrew/include/Kokkos_Core.hpp:194:65: error: 'memory_space' in 'Kokkos::DefaultExecutionSpace {aka class Kokkos::OpenMP}' does not name a type
template< class Space = typename Kokkos::DefaultExecutionSpace::memory_space >
^
/home/davydden/.linuxbrew/include/Kokkos_Core.hpp:207:65: error: 'memory_space' in 'Kokkos::DefaultExecutionSpace {aka class Kokkos::OpenMP}' does not name a type
template< class Space = typename Kokkos::DefaultExecutionSpace::memory_space >
^
I am quite certain it is related to CMake configuration and #define’s as
the issue can be fixed by some hacking:
1) add #include <Kokkos_OpenMP.hpp> to Kokkos_OpenMP.hpp
2) comment out #if defined (KoKKOS_HAVE_OPENMP ) && defiened (_OPENMP ) in Kokkos_OpenMP.hpp and the closing #endif
Regards,
Denis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150924/9f72ac93/attachment.html>
More information about the Trilinos-Users
mailing list