Skip to content

Commit cc98aec

Browse files
authored
MPMD command in openmpi
1 parent 3eeec0a commit cc98aec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mpi_related.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,10 @@ print(psutil.Process().cpu_num())
9595
- In MPICH
9696
- Command: `mpirun -hostfile ./my_hosts -configfile ./my_config`
9797
- Config file: `-n 4 -env CUDA_VISIBLE_DEVICES 0,1,2,3 ./my.exe -i ./my_input : -n 2 -env CUDA_VISIBLE_DEVICES 2,3 ./my.exe -i ./my_input`
98+
- In openmpi
99+
- Command: `mpirun --hostfile ./mfile --app ./config_ompi`
100+
- config_ompi:
101+
```
102+
-n 4 --map-by L3cache -x CUDA_VISIBLE_DEVICES=0,1,2,3 ./my_exe -i ./my_input
103+
-n 2 --map-by L3cache -x CUDA_VISIBLE_DEVICES=2,3 ./my_exe -i ./my_input
104+
```

0 commit comments

Comments
 (0)