Skip to content

Commit

Permalink
bugfix: printing only for rank 0
Browse files Browse the repository at this point in the history
  • Loading branch information
chiang-yuan committed Jun 12, 2024
1 parent 7c043e1 commit cf56258
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mace/cli/preprocess_data_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ def main() -> None:

if args.valid_file is not None:
valid_configs = read_configs(args.valid_file, args, config_type_weights)
logging.info(f"Number of training configurations: {len(train_configs)}")
logging.info(f"Number of validation configurations: {len(valid_configs)}")
if rank == 0:
logging.info(f"Number of training configurations: {len(train_configs)}")
logging.info(f"Number of validation configurations: {len(valid_configs)}")
else:
if rank == 0:
logging.info(
Expand Down

0 comments on commit cf56258

Please sign in to comment.