[Trilinos-Users] [Kokkos-Developers] [EXTERNAL] [12.2.1] MueLu/Kokkos OpenMP configuration/macros issue

Hammond, Simon David (-EXP) sdhammo at sandia.gov
Sat Oct 17 12:00:08 EDT 2015


I might be wrong here but something like this happened to me when I didn't specify "-fope nmp" for my compiler flags.

I'm currently on travel so can't check your scripts yet.

S



--
Si Hammond
Scalable Computer Architectures
Sandia National Laboratories, NM
[Sent remotely, please excuse typing errors]
________________________________
From: kokkos-developers-bounces at software.sandia.gov <kokkos-developers-bounces at software.sandia.gov> on behalf of Denis Davydov <davydden at gmail.com>
Sent: Thursday, October 15, 2015 1:58:58 AM
To: Prokopenko, Andrey (-EXP)
Cc: trilinos-users; kokkos-developers
Subject: Re: [Kokkos-Developers] [EXTERNAL] [Trilinos-Users] [12.2.1] MueLu/Kokkos OpenMP configuration/macros issue

Hi Andrey,

Please find attached requested data.

Regards,
Denis.




On Wed, Sep 30, 2015 at 6:00 PM, Andrey Prokopenko <aprokop at sandia.gov<mailto:aprokop at sandia.gov>> wrote:
Denis,

Sorry for the late reply. Could you please send us your configure script, your configure output and maybe the KokkosCore_config.h in your build directory under packages/kokkos/core/src?

-Andrey


On 09/30/2015 09:45 AM, Andrey Prokopenko wrote:
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<mailto: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/20151017/a1167839/attachment.html>


More information about the Trilinos-Users mailing list