Skip to content

Commit f1db1d6

Browse files
committed
FLASH-IO: set hint romio_ds_write to disable
Set hint romio_no_indep_rw according to command-line option -i
1 parent 78e0889 commit f1db1d6

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

benchmarks/FLASH-IO/checkpoint_ncmpi_parallel.F90

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,17 @@ double precision function checkpoint_wr_ncmpi_par (filenum, simtime)
334334
filename = trim(basenm) // 'ncmpi_chk_'//fnum_string//'.nc'
335335

336336
! set up MPI I/O hints for performance enhancement
337-
file_info = MPI_INFO_NULL
338337
call MPI_Info_create(file_info, err)
339338

340-
! set some ROMIO hints
341-
! call MPI_Info_set(file_info, 'romio_no_indep_rw', 'true', err)
339+
! whether doing independent or collective writes
340+
if (indep_io) then
341+
call MPI_Info_set(file_info, 'romio_no_indep_rw', 'false', err)
342+
else
343+
call MPI_Info_set(file_info, 'romio_no_indep_rw', 'true', err)
344+
endif
345+
346+
! disable data sieving, as FLASH-IO does large continuous writes
347+
call MPI_Info_set(file_info, "romio_ds_write", "disable", err)
342348

343349
! disable file offset alignment for fixed-size variables
344350
call MPI_Info_set(file_info, "nc_var_align_size", "1", err)

benchmarks/FLASH-IO/plotfile_ncmpi_parallel.F90

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,17 @@ double precision function plotfile_ncmpi_par(filenum, simtime, corners)
372372
endif
373373

374374
! set up MPI I/O hints for performance enhancement
375-
file_info = MPI_INFO_NULL
376375
call MPI_Info_create(file_info, err)
377376

378-
! use some ROMIO hints
379-
! call MPI_Info_set(file_info, 'romio_no_indep_rw', 'true', err)
377+
! whether doing independent or collective writes
378+
if (indep_io) then
379+
call MPI_Info_set(file_info, 'romio_no_indep_rw', 'false', err)
380+
else
381+
call MPI_Info_set(file_info, 'romio_no_indep_rw', 'true', err)
382+
endif
383+
384+
! disable data sieving, as FLASH-IO does large continuous writes
385+
call MPI_Info_set(file_info, "romio_ds_write", "disable", err)
380386

381387
! disable file offset alignment for fixed-size variables
382388
call MPI_Info_set(file_info, "nc_var_align_size", "1", err)

0 commit comments

Comments
 (0)