diff options
author | Arun Isaac | 2024-10-02 11:33:43 +0100 |
---|---|---|
committer | Arun Isaac | 2024-10-02 11:33:43 +0100 |
commit | 28048e2aceac7239eaa64cce28f20250057d0e7f (patch) | |
tree | f290f58b10745db4ade7cfb65994d0e7698c672f | |
parent | 998ffbd15af8884a48e6b6075fe2a5043d29b2bb (diff) | |
download | ravanan-28048e2aceac7239eaa64cce28f20250057d0e7f.tar.gz ravanan-28048e2aceac7239eaa64cce28f20250057d0e7f.tar.lz ravanan-28048e2aceac7239eaa64cce28f20250057d0e7f.zip |
command-line-tool: Make runtime.cores a number.
*
ravanan/command-line-tool.scm (build-command-line-tool-script)[cores]:
Return a number on the slurm-api batch system.
-rw-r--r-- | ravanan/command-line-tool.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ravanan/command-line-tool.scm b/ravanan/command-line-tool.scm index 3357b05..944ff07 100644 --- a/ravanan/command-line-tool.scm +++ b/ravanan/command-line-tool.scm @@ -632,7 +632,7 @@ named @var{name} with @var{inputs} using tools from Guix manifest (define (cores batch-system) (case batch-system ((slurm-api) - #~(getenv "SLURM_CPUS_ON_NODE")) + #~(string->number (getenv "SLURM_CPUS_ON_NODE"))) ((single-machine) #~(total-processor-count)) (else |