PIO error when using gnu (> v10.1.0) and MPT
- Dominant language
- Fortran
- Stars
- 59
- Forks
- 73
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 2
Description
When using gnu compiler with MPT, PIO sync fails (seemingly randomly) as segmentation fault (invalid memory reference).
Using intel compiler with MPT works fine.
Using gnu with openmpi works fine (seems to be).
This error happen with mizuRoute with large high resolution river network data (MERIT-Hydro)
I have been running into this problem for long time (for several years now).
More specific configuration is:
gnu v12.1.0
netcdf v 4.8.1
pnetcdf v1.12.3
mpt v2.25
The trace back looks like this (run with debug mode: flag is `-g -Wall -fmax-errors=0 -fbacktrace -fcheck=all`). 14 through 25 are not displayed: they would be in C codes.
piolib_mod.F90 Line 1372 is just `PIOc_sync(file%fh)`
```
#13 0x2b9d2f8c8f66 in PMPI_File_write_at_all
at /usr/src/packages/BUILD/mpt/lib/libmpi/src/romio/mpi-io/write_atall.c:61
#14 0xc53728 in ???
#15 0xc3ae8f in ???
#16 0xc38984 in ???
#17 0xc3a4f2 in ???
#18 0xc369ce in ???
#19 0xc37203 in ???
#20 0xb99763 in ???
#21 0x7b8fc1 in ???
#22 0x7b365e in ???
#23 0x7b917b in ???
#24 0x78559b in ???
#25 0x7077a9 in __piolib_mod_MOD_syncfile
at /glade/u/home/mizukami/sandbox_mizuRoute/libraries/parallelio/src/flib/piolib_mod.F90:1372
#26 0x4193f2 in __pio_utils_MOD_sync_file
at /glade/u/home/mizukami/sandbox_mizuRoute/route/build/../build/src/pio_utils.f90:391
#27 0x46dcc8 in __historyfile_MOD_write_flux
at /glade/u/home/mizukami/sandbox_mizuRoute/route/build/../build/src/historyFile.f90:483
#28 0x58a35e in __write_simoutput_pio_MOD_output
at /glade/u/home/mizukami/sandbox_mizuRoute/route/build/../build/src/write_simoutput_pio.f90:224
#29 0x7042d8 in route_runoff
at /glade/u/home/mizukami/sandbox_mizuRoute/route/build/../build/src/standalone/route_runoff.f90:81
#30 0x7043f7 in main
at /glade/u/home/mizukami/sandbox_mizuRoute/route/build/../build/src/standalone/route_runoff.f90:11
MPT ERROR: MPI_COMM_WORLD rank 0 has terminated without calling MPI_Finalize()
aborting job
MPT: Received signal 11
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.