-
Notifications
You must be signed in to change notification settings - Fork 16
Unified environment updates for Intel and netcdf-c #221
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
Changes from 14 commits
8137622
183612f
06bbd97
1a3537b
f719860
c738cd9
0ca74ed
79f2cb6
f98228d
7754d38
3001382
9b77f0e
27e61e5
f1524e2
683f0c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ class NetcdfC(AutotoolsPackage): | |
| maintainers = ["skosukhin", "WardF"] | ||
|
|
||
| version("main", branch="main") | ||
| version("4.9.1", sha256="4ee8d5f6b50a1eb4ad4c10f24531e36261fd1882410fb08435eb2ddfd49a0908") | ||
| version("4.9.0", sha256="9f4cb864f3ab54adb75409984c6202323d2fc66c003e5308f3cdf224ed41c0a6") | ||
| version("4.8.1", sha256="bc018cc30d5da402622bf76462480664c6668b55eb16ba205a0dfb8647161dd0") | ||
| version("4.8.0", sha256="aff58f02b1c3e91dc68f989746f652fe51ff39e6270764e484920cb8db5ad092") | ||
|
|
@@ -80,7 +81,11 @@ class NetcdfC(AutotoolsPackage): | |
| variant("zstd", default=True, description="Enable ZStandard compression", when="@4.9.0:") | ||
| variant("optimize", default=True, description="Enable -O2 for a more optimized lib") | ||
| variant("nczarr", default=True, description="Enable zarr storage support", when="@4.8.0:") | ||
| variant("byterange", default=False, description="Allow byte-range I/O") | ||
|
AlexanderRichert-NOAA marked this conversation as resolved.
|
||
| # New byte-range I/O option doesn't compile with 4.9.1, will be fixed in 4.9.2 | ||
| # https://github.com/Unidata/netcdf-c/issues/2614 | ||
| variant("byterange", default=False, description="Allow byte-range I/O", when="@4.9.1") | ||
| variant("byterange", default=True, description="Allow byte-range I/O", when="@4.9.2:") | ||
|
Collaborator
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. As long as we're at it, how about adding
Collaborator
Author
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. Yes, I agree. I didn't know that it was available in 4.7.0 already. I'll make the change as follows (not that it goes up to 4.9.1):
Collaborator
Author
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. Very annoying, but for some reason the above suggestion makes and we deal with enabling it for newer versions later. |
||
| # Variant fismahigh is required for FISMA high compliance on operational supercomputers | ||
| variant( | ||
| "fismahigh", | ||
| default=False, | ||
|
|
@@ -152,7 +157,6 @@ class NetcdfC(AutotoolsPackage): | |
| conflicts("+byterange", when="+fismahigh") | ||
| conflicts("+nczarr", when="+fismahigh") | ||
|
|
||
|
|
||
| filter_compiler_wrappers("nc-config", relative_root="bin") | ||
|
|
||
| @property | ||
|
|
@@ -245,6 +249,9 @@ def configure_args(self): | |
| else: | ||
| config_args.append("--disable-pnetcdf") | ||
|
|
||
| if "~byterange" in self.spec: | ||
| config_args.append("--disable-byterange") | ||
|
climbfuji marked this conversation as resolved.
Outdated
|
||
|
|
||
| if "+mpi" in self.spec or "+parallel-netcdf" in self.spec: | ||
| config_args.append("CC=%s" % self.spec["mpi"].mpicc) | ||
|
|
||
|
|
||
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.
Minor nitpick: I think this could be "self.enable_or_disable". Feel free to disregard.