- iCER wiki: https://wiki.hpcc.msu.edu
- Workshops: https://icer.msu.edu/upcoming-workshops
- Introduction to Linux
- Introduction to HPCC
- R on HPCC
- Contact: https://www.hpcc.msu.edu/contact
Sep 10, 2019
Please let me know what needs coverage.
Research space:
/mnt/research/quantgenScratch spaces:
/mnt/gs18/scratch/groups/quantgen/mnt/ls15/scratch/groups/quantgendatasetsprojectsI maintain a set of common software:
How to enable? https://github.com/QuantGen/HPCC/wiki/Shared-Configuration-Files
sbatch submission_script
Submission script must start with #!/bin/bash --login (otherwise our shared configuration files will not be loaded and you won't have access to our shared installation of R).
sbatch parameters?Parameters can be specified on the command line (sbatch {params} submission_script) or within the submission script using specially formatted comments (#SBATCH param).
Assuming you are using R:
| Long name | Short name | Notes |
|---|---|---|
--job-name |
-J |
|
--mem |
Units: K|M|G|T |
|
--time |
-t |
Format: hours:minutes:seconds |
--mail-type |
BEGIN,FAIL,END |
Assuming you are using R:
| Long name | Short name | Notes |
|---|---|---|
--cpus-per-task |
-c |
Only set if you want to use multiple cores |
--array |
-a |
Format: 1-n, use Sys.getenv("SLURM_ARRAY_TASK_ID") to figure out which job in the array you are running |
--tmp |
Units: K|M|G|T, reserves space on local file system (/mnt/local/job_id) |
Assuming you are using R:
| Long name | Short name | Notes |
|---|---|---|
--nodes |
-N |
Always 1 |
--ntasks |
-n |
Always 1 |
#!/bin/bash --login #SBATCH --job-name=my_job #SBATCH --time=4:00:00 #SBATCH --mem=10G Rscript r_code.R
Why not R CMD BATCH?
--restore --save --no-readline--no-restore --no-savesqueue -u ${USER} or squeue --user=${USER}
I don't like the default output format (job ID, partition, job name, user name, job state, time used, number of nodes, reason why pending) and prefer --Format=jobarrayid:20,name:40,state:10,timeused:15,nodelist.
sacct -u ${USER} or sacct --user=${USER}
--starttime defaults to midnight of the same day…
I don't like the default output format (jobs, job steps, status, and exitcodes) and prefer --format=jobid%20,jobname%30,elapsed,timelimit,maxrss,reqmem,exitcode.
scancel job_id
srun {params} --pty /bin/bash