-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TriBits: using find_package(MPI)
when MPI_USE_COMPILER_WRAPPERS
is set to OFF
#13839
Comments
@maartenarnst, @romintomasetti, NOTE: Switching to using So this change has been considered for a long time and is on the backlog of potential changes for TriBITS and Trilinos in this general CMake modernization effort.
The general approach looks reasonable (and using However, note that and So that may have to be addressed as well. A variable missing from Where would providing support and/or switching to @maartenarnst, @romintomasetti, But with the approach shown above using So I would say, go ahead and post a Trilinos PR for this change if you can get this to work for your use cases. That is my opinion. |
@bartlettroscoe, thanks a lot for the detailed feedback! I have just made the PR: |
@trilinos/tribits
@trilinos/framework
@bartlettroscoe
We are exploring how to compile Trilinos with compilers that are not MPI compiler wrappers (option
MPI_USE_COMPILER_WRAPPERS
set toOFF
).A use case is compiling Trilinos as part of building a container image when the
MPI
inside that container image isGPU
aware. We found that the Nvidia container runtime does not make certain libraries available during the build process, and this may cause problems with the OpenMPI compiler wrappers when they are linked with a GPU-awarehwloc
.In particular, we are exploring how to let Trilinos find
MPI
throughfind_package
. Currently, to make this work, we modifiedcmake/tribits/core/std_tpls/FindTPLMPI.cmake
by replacingtribits_tpl_find_include_dirs_and_libraries(MPI)
with:@bartlettroscoe, would you have a moment to take a look? Is this a reasonable way of doing it? Or do you think of other functions from
tribits
that we should use? If such a change would be of interest to you, we would be happy to make a PR too. Thanks in advance!Joint work with @romintomasetti.
The text was updated successfully, but these errors were encountered: