Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Number of Cpu's does not work on slurm

See original GitHub issue

Trying to use this in a slurm cluster, I always get 1 processor allocated no matter what i put in the req_nprocs configuration setting.

It seems that the corresponding option is not included in the slurm script template. I tried to edit it, to no avail.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

mbmilligancommented, Apr 18, 2018

Since I don’t have access to every possible batch system, the choices made in the default batch script templates generally reflect the needs of whomever contributed the script for that job manager. If there’s a reason for omitting req_nprocs in the Slurm script, I don’t know what it was.

To the larger point, one of the TODOs after we finalize this release is to revisit the templating system, since the inability to selectively include lines is a clear weakness of the current scheme.

On Wed, Apr 18, 2018 at 9:12 AM, Richard Darst wrote:

Is there a reason to not have it? If not, I will add it.

Though, right now default is ‘’, which could be interperted differently from 1 on some platforms (slurm defaults to 1): there’s no way to leave it missing. Since jupyterhub depends on jinja2, the batch scripts could be made to use this as well. Do you have any opinions on the matter?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread .

– Michael Milligan, Ph.D. | Supercomputing Institute Assistant Director for | University of Minnesota Application Development | | Phone: 612-624-8857

rkdarstcommented, Jun 18, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

HPC cluster: select the number of CPUs and threads in ...
In other words, a task cannot be split across multiple nodes. Therefore, using --cpus-per-task will ensure it gets allocated to the same node, ......
Read more >
CPU Management User and Administrator Guide
2 jobs each require 6 CPUs (6 tasks per job with no overcommitment). Run both jobs simultaneously in a single node. slurm.conf options:...
Read more >
nodes vs tasks vs cpus vs cores - SCG
A communication bus between a Socket/CPU and I/O controllers (disks, networking, graphics,...) in the server. Slurm complicates this, however, by using the terms ......
Read more >
How do I control threads and CPUs on Ookami using Slurm?
No. of tasks (e.g., commands to run in parallel) to be run. --ntasks-per-node. No. of tasks to use per node. Often, this will...
Read more >
Slurm F.A.Q — CÉCI - CECI
Slurm ignores the concept of parallel environment as such. Slurm simply requires that the number of nodes, or number of cores be specified....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found