-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update make templates to guess HDF5 directories #22
base: main
Are you sure you want to change the base?
Conversation
Added new configuration variables HDF5_LDFLAGS and HDF5_FLAGS to allow user to set location of HDF5 directories. Also added bits to have make guess location using the `h5fc -show` command.
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.
I also noticed this HDF5 issue and was working on something to fix it. This is much more elegant than my hack fix.
I'm curious about the MPI changes. We can either update the commit message or include it the merge commit message.
ifndef MPI_FLAGS | ||
FPPFLAGS += $(shell pkg-config --cflags-only-I mpich2-c) | ||
else | ||
ifdef MPI_FLAGS |
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.
@underwoo did you intend to also change the MPI flags in the make templates? It's not mentioned in the commit message.
I did. The problem with the MPI_FLAGS is that it was specific for mpich2.
Any other MPI library could not be used. The way MPI should be handled is
via the mpi compiler wrappers: `mpicc`, `mpif90`, etc.
…--
Seth Underwood
S/W Development Process Lead
Modeling Systems Group
GFDL/NOAA/DOC
201 Forrestal Road
Princeton, NJ 08540-6649
(609) 452-5847 Office
(304) 376-9002 Cell
(609) 987-5063 Fax
[email protected]
On Mon, Dec 2, 2019 at 8:42 AM Tom Robinson ***@***.***> wrote:
***@***.**** requested changes on this pull request.
I also noticed this HDF5 issue and was working on something to fix it.
This is much more elegant than my hack fix.
I'm curious about the MPI changes. We can either update the commit message
or include it the merge commit message.
------------------------------
In exec/templates/gnu.mk
<#22 (comment)>:
> @@ -96,9 +101,7 @@ else
FPPFLAGS += $(NETCDF_FLAGS)
endif
# Fortran Compiler flags for the MPICH MPI library
-ifndef MPI_FLAGS
-FPPFLAGS += $(shell pkg-config --cflags-only-I mpich2-c)
-else
+ifdef MPI_FLAGS
@underwoo <https://github.com/underwoo> did you intend to also change the
MPI flags in the make templates? It's not mentioned in the commit message.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=AADJUS4UACQBIXAJGV5JXJLQWUGEZA5CNFSM4JSLJ2XKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNRM5JQ#pullrequestreview-325242534>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJUS76YD7QQXOLXTSC3Z3QWUGEZANCNFSM4JSLJ2XA>
.
|
@thomas-robinson this is still open, should it be or can it be closed? |
Added new configuration variables HDF5_LDFLAGS and HDF5_FLAGS to allow user to set location of HDF5 directories. Also added bits to have make guess location using the
h5fc -show
command.Fixes #21