]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: FindKOKKOS: Work around configuration failure 12044/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 15 Apr 2021 04:48:56 +0000 (23:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 15 Apr 2021 04:51:47 +0000 (23:51 -0500)
commit6158449cad959201962cba5a124c1d4bdfb9da57
treeb8b62c5e8f4afb238b958f8a378583e68ba926ae
parent52d5a2a9d68f10e55ca91938ac38c0ab68d72729
CMake: FindKOKKOS: Work around configuration failure

Configuration did fail in the following situation
 - Kokkos installed via Trilinos (MPI enabled)
 - deal.II configured without MPI

In this situation FindTRILINOS.cmake bails out because of an MPI
configuration mismatch, so the manual search for Kokkos in
FindKOKKOS.cmake is triggered. The latter one fails because Kokkos
installed via Trilinos did export a valid project configuration only
containing the Kokkos::kokkos target and not the Kokkos::kokkoscore
target.

Work around this issue by only configuring if Kokkos::kokkoscore has
indeed been imported.
cmake/modules/FindKOKKOS.cmake

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.