[Trilinos-Users] [EXTERNAL] [12.2.1] MueLu/Kokkos OpenMP configuration/macros issue
Andrey Prokopenko
aprokop at sandia.gov
Wed Sep 30 11:45:31 EDT 2015
Forwarding to Kokkos developers as this does not look like a MueLu bug.
-Andrey
On 09/24/2015 01:06 AM, Denis Davydov wrote:
> 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.
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150930/43ce7820/attachment.html>
More information about the Trilinos-Users
mailing list