You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
FMS2io collective netcdf reads hang when the io layout is not the same as the layout.
This is because in the domain_read, the code calls netcdf_read_data inside a if (fileobj%is_root) block.
but since the nf90_get_var call is only done by the root pe, the code hangs.
In the case when the io layout is the same as the layout, each rank is reading its own section of the code so all the ranks make it to the nf90_get_var call.
Describe the bug
FMS2io collective netcdf reads hang when the io layout is not the same as the layout.
This is because in the domain_read, the code calls
netcdf_read_data
inside aif (fileobj%is_root)
block.FMS/fms2_io/include/domain_read.inc
Lines 163 to 206 in 23df6d7
And in
netcdf_read_data
, it doesFMS/fms2_io/include/netcdf_read_data.inc
Lines 357 to 376 in 23df6d7
but since the
nf90_get_var
call is only done by the root pe, the code hangs.In the case when the io layout is the same as the layout, each rank is reading its own section of the code so all the ranks make it to the
nf90_get_var
call.To Reproduce
This small test reproduces the issue. The program works when the io layout is the same as the layout, but it hangs when it is not.
https://github.com/uramirez8707/FMS/blob/pnetcdf_test/test_fms/fms2_io/test_domain_pnetcdf.F90
Expected behavior
This test case should work
System Environment
This happens in any system.
Additional context
N/A
The text was updated successfully, but these errors were encountered: