Changes between Version 28 and Version 29 of cypress/R


Ignore:
Timestamp:
08/19/25 14:50:13 (42 hours ago)
Author:
cbaribault
Comment:

Added: modify slurm scripts

Legend:

Unmodified
Added
Removed
Modified
  • cypress/R

    v28 v29  
    272272}}}
    273273
    274 The downloaded sample file '''bootstrap.sh''' contains the above SLURM script code, and we can submit as shown below.
     274For now we'll need to modify the downloaded sample file '''bootstrap.sh''' to contain the above SLURM script code, and we can submit as shown below.
    275275
    276276Also, note that since we did not specify an output file in the SLURM script, the output will be written to slurm-<!JobNumber>.out. For example:
     
    295295The disadvantage of the above approach is that it is system specific. If we move our code to a machine that uses PBS-Torque as it's manager ([[https://hpc.loni.org/resources/hpc/system.php?system=QB2|LONI QB2]] for example) we have to change our source code. An alternative method that results in a more portable code base uses command line arguments to pass the value of our environment variables into the script.
    296296
    297 Let's look at the downloaded file '''bootstrapWargs.R''' containing the following code.
     297Let's look at the downloaded sample file '''bootstrapWargs.R''' containing the following code.
    298298
    299299{{{#!r
     
    362362}}}
    363363
    364 The downloaded file '''bootstrapWargs.sh''' contains the above SLURM script code.
     364For now we'll need to modify the downloaded sample file '''bootstrapWargs.sh''' to contain the above SLURM script code.
    365365
    366366Now submit as in the following.