-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically generate the correct platform-dependent parallel spawn command for examples #56
Comments
Related issue #69 |
Instead of parsing the hostname, I would suggest looking for the presence of srun, jsrun, mpirun etc., and using the one that is found as the spawn command. |
Uh oh.
|
Is that an issue? if [[ command -v lrun ]]; then
# Run with lrun
elif [[ command -v srun ]]; then
# Run with srun
elif [[ command -v mpirun ]]; then
# Run with mpirun
fi
#etc. |
In the current run_examples.sh . It should pass on most workstations which have
mpiexec
. However, this line will fail on LC machines due to it not using an appropriate parallel spawn command.For quartz, we can easily just replace
mpiexec
withsrun
:srun -n <nproc> -ppdebug python <thing>-mpi.py
. There is similar command for Lassen.We could easily add hostname-parsing to the
run_examples.sh
script and be done with it (until the next unique platform) - but I wanted to ask the group. Is there a better, cleaner, or more robust way?The text was updated successfully, but these errors were encountered: