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

per-test option cpusPerTask should work with the slurm module #118

Open
dawson6 opened this issue Apr 4, 2023 · 1 comment
Open

per-test option cpusPerTask should work with the slurm module #118

dawson6 opened this issue Apr 4, 2023 · 1 comment

Comments

@dawson6
Copy link
Member

dawson6 commented Apr 4, 2023

The command line option --cpusPerTask works with the slurm module.
This option will add this to the srun line so it looks like so if run with ats -cpusPerTask=2

srun --nodes=2-3 --cpus-per-task=2 --ntasks=40

However if the cpusPerTask=2 is specified on the ATS test line for an individual test case, it is ignored. That is, this line is generated.

srun --nodes=2-3 --cpus-per-task=1 --ntasks=40

The slurm module should honor that option on a per test basis, so that non threaded codes can reserve 2 CPUs for a test in order to undersubscribe nodes, or for any other reason.

@dawson6
Copy link
Member Author

dawson6 commented Apr 4, 2023

Shawn will fix this issue.

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