netcdf-c: add patch to enable '@4.9.0:~mpi+parallel-netcdf' (#35462)
This commit is contained in:
parent
a6731b732e
commit
f31e8adc6b
@ -0,0 +1,11 @@
|
||||
--- a/libhdf5/hdf5internal.c
|
||||
+++ b/libhdf5/hdf5internal.c
|
||||
@@ -163,7 +163,7 @@ find_var_dim_max_length(NC_GRP_INFO_T *grp, int varid, int dimid,
|
||||
if (var->dimids[d] == dimid)
|
||||
*maxlen = *maxlen > h5dimlen[d] ? *maxlen : h5dimlen[d];
|
||||
|
||||
-#ifdef USE_PARALLEL
|
||||
+#ifdef USE_PARALLEL4
|
||||
/* If we are doing parallel I/O in collective mode (with
|
||||
* either pnetcdf or HDF5), then communicate with all
|
||||
* other tasks in the collective and find out which has
|
@ -68,6 +68,9 @@ class NetcdfC(AutotoolsPackage):
|
||||
# See https://github.com/Unidata/netcdf-c/pull/2293
|
||||
patch("4.8.1-no-strict-aliasing-config.patch", when="@4.8.1")
|
||||
|
||||
# See https://github.com/Unidata/netcdf-c/pull/2618
|
||||
patch("4.9.0-no-mpi-yes-pnetcdf.patch", when="@4.9.0: ~mpi+parallel-netcdf")
|
||||
|
||||
variant("mpi", default=True, description="Enable parallel I/O for netcdf-4")
|
||||
variant("parallel-netcdf", default=False, description="Enable parallel I/O for classic files")
|
||||
variant("hdf4", default=False, description="Enable HDF4 support")
|
||||
|
Loading…
Reference in New Issue
Block a user