Skip to content
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

processes_per_node should default to ncpus #8

Open
kcpevey opened this issue Jul 17, 2019 · 1 comment
Open

processes_per_node should default to ncpus #8

kcpevey opened this issue Jul 17, 2019 · 1 comment

Comments

@kcpevey
Copy link

kcpevey commented Jul 17, 2019

To max out processes_per_node requires users to know how many ncpus are on each node for each machine. To prevent that, it makes sense to automatically default to ncpus (using all of them) instead of making it a requirement for PbsScript

@kcpevey
Copy link
Author

kcpevey commented Jul 17, 2019

I would also be good to have access to the total number of nodes. The necessary logic is inside of PbsScript.get_num_nodes_process_str() but that only writes the pbs header and doesn't store the ncpus data.

An example submit script for adh would be:

#!/bin/bash
#PBS -A ****
#PBS -q debug
#PBS -l select=10:ncpus=44:mpiprocs=44
#PBS -l walltime=1:00:00
#PBS -l application=adh
#PBS -N Lake_Washington

cd $PBS_O_WORKDIR
aprun -n 1 $PROJECTS_HOME/AdH_SW/pre_adh_V4.6  CTR1_PWOP |tee PWOP_pre_adh.out
aprun -n 440 $PROJECTS_HOME/AdH_SW/adh_V4.6 CTR1_PWOP |tee PWOP_adh.out

Where aprun -n 440 refers to the total number of nodes (select * ncpus).

I'd like to have access to the complex ncpus structure in a separate function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant