diff --git a/orte/mca/odls/alps/odls_alps_module.c b/orte/mca/odls/alps/odls_alps_module.c index 7d0e15d6f6..fd1ba97454 100644 --- a/orte/mca/odls/alps/odls_alps_module.c +++ b/orte/mca/odls/alps/odls_alps_module.c @@ -423,6 +423,11 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd) sigprocmask(0, 0, &sigs); sigprocmask(SIG_UNBLOCK, &sigs, 0); + /* take us to the correct wdir */ + if (NULL != cd->wdir) { + chdir(cd->wdir); + } + /* Exec the new executable */ if (10 < opal_output_get_verbosity(orte_odls_base_framework.framework_output)) {