Discussion:
nf90_var_par_access - independent or collective
Karsten Bolding
2014-09-10 10:25:46 UTC
Permalink
Hello

Compiling like:
mpif90 simple_xy_par_wr2.f90 -I/opt/netcdff-4.4.1-gfortran-4.8-par/include/
/opt/netcdff-4.4.1-gfortran-4.8-par/lib/libnetcdff.a
/opt/netcdf-4.3.3-rc1-gcc-4.8-par/lib/libnetcdf.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5_hl.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5.a -ldl -lm -lz -lcurl

I can run:

mpiexec -n 10 ./a.out

with collective it works but with independent I get:

NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use
nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use
nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use
nc_va
STOP 2
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use
nc_va

any ideas?

Karsten
Holt, John R.
2014-09-10 11:50:17 UTC
Permalink
Hi Karsten,

I also bumped into this problem (although I didn’t get any error message). If one of your dimension is unlimited then all parallel IO must be collective.

Cheers,

John

From: Karsten Bolding [mailto:***@bolding-burchard.com]
Sent: 10 September 2014 11:26
To: ***@unidata.ucar.edu
Subject: [netcdfgroup] nf90_var_par_access - independent or collective

Hello

Compiling like:
mpif90 simple_xy_par_wr2.f90 -I/opt/netcdff-4.4.1-gfortran-4.8-par/include/ /opt/netcdff-4.4.1-gfortran-4.8-par/lib/libnetcdff.a /opt/netcdf-4.3.3-rc1-gcc-4.8-par/lib/libnetcdf.a /opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5_hl.a /opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5.a -ldl -lm -lz -lcurl

I can run:

mpiexec -n 10 ./a.out

with collective it works but with independent I get:

NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
STOP 2
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va

any ideas?

Karsten



________________________________
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
Karsten Bolding
2014-09-10 11:54:06 UTC
Permalink
Hi John

The program I'm testing is 'simple_xy_par_wr2.f90' from the NetCDF Fortran
distribution. And none of the dimensions are unlimited.

But nice to know for a real application.

Karsten
Post by Holt, John R.
Hi Karsten,
I also bumped into this problem (although I didn’t get any error message).
If one of your dimension is unlimited then all parallel IO must be
collective.
Cheers,
John
*Sent:* 10 September 2014 11:26
*Subject:* [netcdfgroup] nf90_var_par_access - independent or collective
Hello
mpif90 simple_xy_par_wr2.f90
-I/opt/netcdff-4.4.1-gfortran-4.8-par/include/
/opt/netcdff-4.4.1-gfortran-4.8-par/lib/libnetcdff.a
/opt/netcdf-4.3.3-rc1-gcc-4.8-par/lib/libnetcdf.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5_hl.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5.a -ldl -lm -lz -lcurl
mpiexec -n 10 ./a.out
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
STOP 2
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
any ideas?
Karsten
------------------------------
This message (and any attachments) is for the recipient only. NERC is
subject to the Freedom of Information Act 2000 and the contents of this
email and any reply you make may be disclosed by NERC unless it is exempt
from release under the Act. Any material supplied to NERC may be stored in
an electronic records management system.
Karsten Bolding
2014-09-10 11:55:46 UTC
Permalink
Actually I was wrong - there is an un-limited dimension in the code - even
though it is not used.

Karsten
Post by Holt, John R.
Hi Karsten,
I also bumped into this problem (although I didn’t get any error message).
If one of your dimension is unlimited then all parallel IO must be
collective.
Cheers,
John
*Sent:* 10 September 2014 11:26
*Subject:* [netcdfgroup] nf90_var_par_access - independent or collective
Hello
mpif90 simple_xy_par_wr2.f90
-I/opt/netcdff-4.4.1-gfortran-4.8-par/include/
/opt/netcdff-4.4.1-gfortran-4.8-par/lib/libnetcdff.a
/opt/netcdf-4.3.3-rc1-gcc-4.8-par/lib/libnetcdf.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5_hl.a
/opt/hdf5-1.8.13-gcc-4.8-par/lib/libhdf5.a -ldl -lm -lz -lcurl
mpiexec -n 10 ./a.out
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
STOP 2
NetCDF: Attempt to extend dataset during NC_INDEPENDENT I/O operation. Use nc_va
any ideas?
Karsten
------------------------------
This message (and any attachments) is for the recipient only. NERC is
subject to the Freedom of Information Act 2000 and the contents of this
email and any reply you make may be disclosed by NERC unless it is exempt
from release under the Act. Any material supplied to NERC may be stored in
an electronic records management system.
Loading...