Replies: 3 comments 5 replies
|
@trilinos/framework @bartlettroscoe Can you advise? |
|
I believe this issue could be resolved by including something similar to Or probably better to include the Kokkos includes specifically on components that use Kokkos/KokkosKernels instead of all of them. This would allow projects that bring in Trilinos to simply use |
|
I'm out of town at the moment but I believe the short answer here is If you do it this way, Teuchos targets should automatically have a propagated dependency on Kokkos targets (and all other appropriate dependencies). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Find package on Trilinos
Is there documentation on how to properly import Trilinos components into a separate library using CMake? I see some stuff here https://github.com/trilinos/Trilinos/blob/master/demos/simpleBuildAgainstTrilinos/CMakeLists.txt but it looks out of date. My issue is that I can run
find_package(Trilinos REQUIRED COMPONENTS ShyLU Belos Tpetra Teuchos TeuchosCore)and I include theTrilinos::all_selected_libstarget as a dependency for my internal libraries but it does not work. Firstly, the Trilinos include directory is not included for any of the Trilinos interface targets so it can't find it's own headers. If I fix that by explicitly setting it I still get a compile error that it cannot find a Kokkos header from Teuchos_ScalarTraits.hpp. I might be able to solve this by doing find_package on Kokkos and then setting my targets to depend on Kokkos, but that seems wrong because I do not depend on Kokkos directly. Is there something I am missing here?All reactions