CODARcode / cheetah

CODAR Experiment Harness
Other
7 stars 6 forks source link

ParamEnvVar error in MPMD mode #253

Closed kshitij-v-mehta closed 2 years ago

kshitij-v-mehta commented 2 years ago

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.

kshitij-v-mehta commented 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

kshitij-v-mehta commented 2 years ago

Fixed.