-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
vsl: update include and lib paths for openmpi #196
Conversation
WalkthroughThe recent revisions focus on updating the compiler flags within the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- mpi/_cflags.c.v (1 hunks)
Additional comments: 2
mpi/_cflags.c.v (2)
5-5: The include path for FreeBSD has been updated to add the
openmpi
specific directory before the standard/usr/local/include
. This ensures that theopenmpi
headers are found before the system headers, which is necessary for compatibility.6-6: The library path for FreeBSD has been updated to include the
openmpi
specific library path at the beginning. This change is consistent with the include path change and is necessary for linking against the correctopenmpi
libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Excellent analysis.
On FreeBSD, the
openmpi
package gets installed in/usr/local/mpi/openmpi
instead of/usr/local
. Therefore the include and lib paths need to include-I/usr/local/mpi/openmpi/include
and-L/usr/local/mpi/openmpi/lib
.I notice that if one uses the
mpich
package instead ofopenmpi
, the headers and library are in/usr/local/include
and/usr/local/lib
. Then one does not need to make changes tompi/_cflags.c.v
. However, withmpich
, you need to change the types of MPI_Comm and MPI_Group as shown in the following diff.VSL works with
mpich
after making this patch.Summary by CodeRabbit