[slurm-users] How to request ONLY one CPU instead of one socket or one node?
Henkel, Andreas
henkel at uni-mainz.de
Wed Feb 13 04:54:20 UTC 2019
Hi Leon,
If the partition is defined to run jobs exclusive you always get a full node.
You’ll have to try to either split up your analysis in independent subtasks to be run in parallel by dividing the data or make use of some Perl parallelization package like parallel::Forkmanager to run steps of a for-loop in parallel. Then you would make use of the whole node and have your analysis finish earlier.
Best
Andreas
Am 13.02.2019 um 05:40 schrieb Wang, Liaoyuan <wangly at alfred.edu<mailto:wangly at alfred.edu>>:
Dear there,
I wrote an analytic program to analyze my data. The analysis costs around twenty days to analyze all data for one species. When I submit my job to the cluster, it always request one node instead of one CPU. I am wondering how I can ONLY request one CPU using “sbatch” command? Below is my batch file. Any comments and help would be highly appreciated.
Appreciatively,
Leon
================================================
#!/bin/sh
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH -t 45-00:00:00
#SBATCH -J 9625%j
#SBATCH -o 9625.out
#SBATCH -e 9625.err
/home/scripts/wcnqn.auto.pl
===========================================
Where wcnqn.auto.pl is my program. 9625 denotes the species number.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190213/dc95a78b/attachment-0001.html>
More information about the slurm-users
mailing list