-
I am trying to compile the simpleBuildAgainstTrilinos example. I think I was successful in building Trilinos, but some of the build output confuses me. My config file was as follows:
The output related to TPLs was:
I noticed that MPI_LIBRARY_NAMES is blank in the output. Also there is no confirmation that BLAS or LAPACK "passed" as was the case for "DLlib". To build the sample app, demos/simpleBuildAgainstTrilinos/app.cpp, I created a new folder called myApp and created a config file there:
This process uses the CMakeLists.txt file found in .../Trilinos-master-27Aug2024/demos/simpleBuildAgainstTrilinos/. The update I made to the CMakeLists.txt is the CMake version. Updated to 3.27.0 minimum version. The output from the build (from running that config file was):
There were many more link errors related to KokkosBlas_Host_tpl. Do the link errors have anything to do with the "Trilinos_TPL_LIST" and "Trilinos_TPL_LIBRARIES" being empty in the above output? Or what could be the reason that Kokkos does not find the blas libraries? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@abodado Could you enable Tpetra's tests to verify that your build is ok?
|
Beta Was this translation helpful? Give feedback.
-
@trilinos/framework Should this work as specified in the |
Beta Was this translation helpful? Give feedback.
-
I have made some changes to the config script for both the trilinos build and the app build. These changes seemed to have worked and the build is successful. My new config file to build Trilinos:
I believe the important change was to move the library references (that I previously had listed under TPL_BLAS_LIBRARIES) to the following: This was mentioned in #8632, but it wasn't clear that that was the final solution for that build issue. But I tried it, and for me, it worked. As can be seen in the trilinos build output, there are explicit messages that both blas and lapack are found (whereas previously, this had not been the case).
My updated config script for the build of app.cpp is now:
where (as in the config script for trilinos) I have added the directive "-D CMAKE_EXE_LINKER_FLAGS:STRING="-lgfortran -lgomp -lm" ". I hope this is helpful to anyone facing a similar issue. Thank you to @jhux2 for the suggestion of building with Tpetra tests which helped me realize the problem was further upstream than I had thought! |
Beta Was this translation helpful? Give feedback.
I have made some changes to the config script for both the trilinos build and the app build. These changes seemed to have worked and the build is successful.
My new config file to build Trilinos: