Skip to content

Commit 4569c89

Browse files
committed
Print MPI
1 parent 588ef59 commit 4569c89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deepspeed/launcher/multinode_runner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_cmd(self, environment, active_resources):
9494
assert not self.args.detect_nvlink_pairs, "openmpi backend does not support remapping visible devices"
9595
total_process_count = sum(self.resource_pool.values())
9696
allow_run_as_root = os.environ.get('RUN_MPI_AS_ROOT', False)
97-
97+
9898
# Default
9999
# mpirun_cmd = [
100100
# 'mpirun',
@@ -165,8 +165,11 @@ def get_cmd(self, environment, active_resources):
165165

166166
python_exec = [sys.executable, "-u"]
167167

168-
return mpirun_cmd + export_cmd + python_exec + [self.user_script
168+
all_cmpi_args = mpirun_cmd + export_cmd + python_exec + [self.user_script
169169
] + self.user_arguments
170+
print("All MPI args:")
171+
print(all_cmpi_args)
172+
return all_cmpi_args
170173

171174

172175
class MVAPICHRunner(MultiNodeRunner):

0 commit comments

Comments
 (0)