Closed jedwards4b closed 3 years ago
What version of PnetCDF is used to run the test program (and to create the input file if different)?
pnetcdf/1.12.2 is used in the test. I suspect that the input file was created with serial netcdf, but I don't know for sure, it's netcdf classic format.
In NetCDF realm, there are two kinds of data types: numeric and non-numeric. The only non-numeric data type is NC_CHAR. NC_BYTE is a numeric data type, which means signed 1-byte integer and its corresponding MPI data type is MPI_SIGNED_CHAR, rather than MPI_BYTE. If you replaced MPI_BYTE with MPI_SIGNED_CHAR, then the test program runs fine.
Awesome - thank you!
The following code seems to indicate that the ncmpi_get_vard_all is broken with respect to datatype MPI_BYTE I've tried with mpt/2.22 and openmpi/4.0.5 It's a simple test and only requires 1 mpi task.
The input file required is here.