-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add recipe for libpnetcdf #21797
Merged
Merged
Add recipe for libpnetcdf #21797
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
70a052b
Add recipe for libpnetcdf
xylar ba306ef
Debug make check
xylar 9e9c562
Comment out tests
xylar 47b2dfb
Add zklaus
xylar 5bbbdf9
Remove unneeded hdf5 dependency
xylar 3468f5b
Add --with-mpi
xylar 405bf18
Add tests for package config and include files
xylar a00f9d6
Pin to libnetcdf 4.9.1 and netcdf-fortran 4.6
xylar 70a5082
Remove libnetcdf and netcdf-fortran
xylar 957d257
Remove `--with-netcdf4` flag
xylar eecabba
Disable check for netcdf4 for now
xylar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
export MPICC=mpicc | ||
export MPICXX=mpicxx | ||
export MPIF77=mpifort | ||
export MPIF90=mpifort | ||
|
||
./configure --prefix=${PREFIX} \ | ||
--with-mpi=${PREFIX} \ | ||
--enable-shared=yes \ | ||
--enable-static=no | ||
|
||
make | ||
|
||
# MPI tests aren't working in CI (not uncommon) | ||
# make check | ||
# make ptest | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mpi: | ||
- openmpi | ||
- mpich |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{% set version = "1.12.3" %} | ||
{% set build = 0 %} | ||
|
||
# recipe-lint fails if mpi is undefined | ||
{% set mpi = mpi or 'mpich' %} | ||
{% if mpi == "mpich" %} | ||
# prioritize mpich via build number | ||
{% set build = build + 100 %} | ||
{% endif %} | ||
|
||
package: | ||
name: libpnetcdf | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://parallel-netcdf.github.io/Release/pnetcdf-{{ version }}.tar.gz | ||
sha256: 439e359d09bb93d0e58a6e3f928f39c2eae965b6c97f64e67cd42220d6034f77 | ||
|
||
build: | ||
number: {{ build }} | ||
skip: True # [win] | ||
{% set mpi_prefix = "mpi_" + mpi %} | ||
# add build string so packages can depend on mpi variants dependencies: | ||
# `PKG_NAME * mpi_mpich_*` for mpich | ||
# `PKG_NAME * mpi_*` for any mpi | ||
string: {{ mpi_prefix }}_h{{ PKG_HASH }}_{{ build }} | ||
|
||
run_exports: | ||
- {{ pin_subpackage('libpnetcdf', max_pin='x.x.x') }} {{ mpi_prefix }}_* | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- {{ compiler('fortran') }} | ||
- m4 | ||
- make | ||
host: | ||
- {{ mpi }} | ||
|
||
test: | ||
commands: | ||
- pnetcdf-config --all | ||
- test -f ${PREFIX}/lib/pkgconfig/pnetcdf.pc | ||
- test -f ${PREFIX}/include/pnetcdf | ||
- test -f ${PREFIX}/include/pnetcdf.h | ||
- test -f ${PREFIX}/include/pnetcdf.mod | ||
- test -f ${PREFIX}/include/pnetcdf.inc | ||
- test ! -f ${PREFIX}/lib/libpnetcdf.a | ||
- test -f ${PREFIX}/lib/libpnetcdf${SHLIB_EXT} | ||
- pnetcdf-config --has-c++ | grep -q yes | ||
- pnetcdf-config --has-fortran | grep -q yes | ||
# disabled for now | ||
# - pnetcdf-config --netcdf4 | grep -q enabled | ||
|
||
|
||
about: | ||
home: https://parallel-netcdf.github.io/ | ||
license: custom | ||
license_file: COPYRIGHT | ||
summary: | | ||
PnetCDF is a high-performance parallel I/O library for accessing Unidata's | ||
NetCDF, files in classic formats, specifically the formats of CDF-1, 2, and | ||
5. | ||
dev_url: https://github.com/Parallel-NetCDF/PnetCDF | ||
|
||
extra: | ||
recipe-maintainers: | ||
- xylar | ||
- zklaus | ||
- jedwards4b | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jedwards4b, are you also interested in being a maintainer? If so, your help would be quite valuable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, please add me as a maintainer. Thanks |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@zklaus, would you be willing to be a maintainer of the PNetCDF library? It seems like it would make sense since you're a maintainer (and a very helpful one!) for parallelio.
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.
Sure, can do 👍
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.
Great, thank you! Feel free to review and recommend changes.