Closed kshitij-v-mehta closed 2 years ago
The fix for this now launches each app in its own bash script in which app-specific environment variables are set. A higher-level launch script then launches the run. See example 07-mpmd-simple. For example:
.codar.savanna.mpmd.launch.sh: srun -n2 -N1 /path/to/app1.sh : -n 3 -N 1 /path/to/app2.sh
app1.sh: export OMP_NUM_THREADS=2 /path/to/app1.exe
Fixed.
Environment variables specified through ParamEnvVar get ignored for the second application when run in MPMD mode. The env var for the first app get set as global env vars for the entire MPMD run.