File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1260,12 +1260,17 @@ int test_remove_file(test_cfg* cfg, const char* filepath)
12601260
12611261 /* stat file and simply return if it already doesn't exist */
12621262 rc = stat (filepath , & sb );
1263+ // We want every rank get the result from stat()
1264+ // above. The barrier makes sure rank 0 won't just
1265+ // go ahead delete the file before others call stat()
1266+ test_barrier (cfg );
12631267 if (rc ) {
12641268 test_print_verbose_once (cfg ,
12651269 "DEBUG: stat(%s): file already doesn't exist" , filepath );
12661270 return 0 ;
12671271 }
12681272
1273+
12691274 if (cfg -> use_mpiio ) {
12701275 if (cfg -> rank == 0 || cfg -> io_pattern == IO_PATTERN_NN ) {
12711276 MPI_CHECK (cfg , (MPI_File_delete (filepath , MPI_INFO_NULL )));
You can’t perform that action at this time.
0 commit comments