Changes between Version 13 and Version 14 of cypress/R
- Timestamp:
- 08/22/17 20:57:20 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/R
v13 v14 101 101 library(doParallel) 102 102 103 # use the environment variable SLURM_ NTASKS_PER_NODEto set the number of cores104 registerDoParallel(cores=(Sys.getenv("SLURM_ NTASKS_PER_NODE")))103 # use the environment variable SLURM_CPUS_PER_TASK to set the number of cores 104 registerDoParallel(cores=(Sys.getenv("SLURM_CPUS_PER_TASK"))) 105 105 106 106 # Bootstrapping iteration example … … 132 132 #SBATCH --time=00:01:00 # WallTime 133 133 #SBATCH --nodes=1 # Number of Nodes 134 #SBATCH --ntasks-per-node=16 # Number of Tasks per Node 134 #SBATCH --ntasks-per-node=1 # Number of Tasks per Node 135 #SBATCH --cpus-per-task=16 # Number of threads per task (OMP threads) 135 136 136 137 module load R/3.1.2 137 138 138 Rscript bootstrap.R 139 Rscript bootstrap.R $SLURM_CPUS_PER_TASK 139 140 }}} 140 141 … … 148 149 args<-commandArgs(TRUE) 149 150 150 # use the environment variable SLURM_ NTASKS_PER_NODEto set the number of cores151 # use the environment variable SLURM_CPUS_PER_TASK to set the number of cores 151 152 registerDoParallel(cores=(as.integer(args[1]))) 152 153 … … 179 180 #SBATCH --time=00:01:00 # WallTime 180 181 #SBATCH --nodes=1 # Number of Nodes 181 #SBATCH --ntasks-per-node=16 # Number of Tasks per Node 182 #SBATCH --ntasks-per-node=1 # Number of Tasks per Node 183 #SBATCH --cpus-per-task=16 # Number of threads per task (OMP threads) 182 184 183 185 module load R/3.1.2 184 186 185 Rscript bootstrapWargs.R $SLURM_ TASKS_PER_NODE187 Rscript bootstrapWargs.R $SLURM_CPUS_PER_TASK 186 188 }}} 187 189