Changes between Version 24 and Version 25 of cypress/R
- Timestamp:
- 09/16/22 16:19:37 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/R
v24 v25 135 135 '''For Workshop''' : 136 136 If you use a temporary workshop account, modify the SLURM script like: 137 {{{#! bash137 {{{#!sh 138 138 #!/bin/bash 139 139 #SBATCH --partition=workshop # Partition … … 190 190 The above script will obtain the number of tasks per node via the SLURM environment variable '''SLURM_CPUS_PER_TASK''' set in our SLURM script and will pass that value to the '''registerDoParallel( )''' function. To implement this we need only set the correct parameters in our SLURM script. Suppose we wanted to use 16 cores. Then the correct SLURM script would be as follows. 191 191 192 {{{#! bash192 {{{#!sh 193 193 #!/bin/bash 194 194 #SBATCH --qos=normal # Quality of Service … … 206 206 '''For Workshop''' : 207 207 If you use a temporary workshop account, modify the SLURM script like: 208 {{{#! bash208 {{{#!sh 209 209 #!/bin/bash 210 210 #SBATCH --partition=workshop # Partition … … 279 279 Note the use of '''args<-commandArgs(TRUE)''' and of '''as.integer(args[1])'''. This allows us to pass in a value from the command line when we call the script and the number of cores will be set to that value. Using the same basic submission script as last time, we need only pass the value of the correct SLRUM environment variable to the script at runtime. 280 280 281 {{{#! bash281 {{{#!sh 282 282 #!/bin/bash 283 283 #SBATCH --qos=normal # Quality of Service … … 295 295 '''For Workshop''' : 296 296 If you use a temporary workshop account, modify the SLURM script like: 297 {{{#! bash297 {{{#!sh 298 298 #!/bin/bash 299 299 #SBATCH --partition=workshop # Partition