Skip to content
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

wi4mpi command doesn't work with different installations of MPI #48

Closed
laurent-nguyen opened this issue May 11, 2023 · 2 comments · Fixed by #67
Closed

wi4mpi command doesn't work with different installations of MPI #48

laurent-nguyen opened this issue May 11, 2023 · 2 comments · Fixed by #67

Comments

@laurent-nguyen
Copy link
Member

See with OpenMPI and IntelOneAPI, it seems wi4mpi command set paths (with lib or lib64). But, the MP installations can be different along the way there are packaged (manually compiled or Fedora packaging for example).

I suggest to detect if ${MPI_ROOT}/lib/libmpi.so does exist, otherwise try with ${MPI_ROOT}/lib64/libmpi.so.

@adrien-cotte
Copy link
Contributor

Obviously... Thanks for your feedback!

@kevin-juilly
Copy link

In Fedora (and other Red Hat related distribution), the lib64 is part of the prefix (/usr/lib64/openmpi).
If someone manually compiles an mpi and does not use ${MPI_ROOT}/lib, they probably overrided libdir at configure time. It means it can be anything so it's on them to properly export WI4MPI_RUN_* variables.

But I still did the work, refactoring the script as a bonus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants