-
Notifications
You must be signed in to change notification settings - Fork 10
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
set CC env variable #266
set CC env variable #266
Conversation
Fixes issues with finding mpi
@bknight1 please change main to development here too. Thanks. |
I'm unclear if this approach is the best. |
@julesghub This was to fix a changein mpi4py>=4 where we can't get the CC env variable from mpi4py any more. UW won't compile if the CC env isn't set as it can't find the mpi install. |
Could add a flag to only set it if it's not found? |
interesting, I'm running mpi4py==4.0.1 and have no issues. |
Is your CC variable already set in terminal? |
Nope. |
Okay, fair enough. Thyagi and I discussed in detail on #242 |
mpi4py/mpi4py#532 |
Yeah, I used homebrew to install ompi |
What's your path? |
It's the homebrew dir: which is included in my $PATH env variable, so should be picked up? |
yeah the mpicc will be picked up but not the mpi.h, which was the main issue I believe. |
I am using manual install |
@gthyagi you need to use |
Hopefully this is a fix for effiectively getting mpicc. Need to test using conda next.
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.
Looks good!
I add a rework to effectively get what petsc was compiled with, not directly get mpicc. Show work all the same. |
I am now able to install the code without any MPI issues using this fix. Please merge it. |
Fixes issues with finding mpi