Skip to content

R jobs on SLURM running on a single node only

2 messages · S....v ..., Jeff Newmiller

#
Despite mentioning the job name, partition and node on which the job should
run, R is still running on compute node 01 with no migration to other
nodes. I am presenting the script below, any help is appreciated:

!/bin/bash
#SBATCH --job-name=10/0.30
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=16
#SBATCH --partition=debug
#SBATCH --exclude=compute[23,31-33,40]
#SBATCH --nodelist=compute[07]

echo "program started"
cd /home1/ASP/sourav/coarse_grained_simulations/10/0.30

sbatch /home1/ASP/R-3.3.1/bin/R CMD BATCH --no-save --no-restore test_dcd.R
test_dcd.out

On running squeue to get the list of running jobs:

         12169      nnvi        R      ASP  R       7:08      1 compute01
         12172      nnvi        R      ASP  R       5:03      1 compute01
         12175      nnvi        R      ASP  R       3:26      1 compute01
         12177      nnvi        R      ASP  R       0:02      1 compute01


Regards
Sourav
#
Cross-posting [1] is not acceptable on R-help, particularly if you don't let reasonable time pass and inform us of the other posting.  Topics not related to the R language are off-topic here (this is about slurm, not R).

[1] http://stackoverflow.com/questions/38991287/r-jobs-on-slurm-running-on-a-single-node-only