LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Undergrad Resources
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » slurm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:slurm [2024/04/24 12:00] – [slurm] willtools:slurm [2026/05/19 16:27] (current) – [sbatch options] will
Line 9: Line 9:
  
  
-===== Resources ===== +===== Resources and Documentation ===== 
-See+ 
 +There are many guides to using slurm, some written specifically for the super computer we use.
  
   * [[https://www.psc.edu/resources/bridges-2/user-guide/|PSC bridges guide]]    * [[https://www.psc.edu/resources/bridges-2/user-guide/|PSC bridges guide]] 
   * [[https://slurm.schedmd.com/tutorials.html#tools|slurm's vidoe and tutorial links]]   * [[https://slurm.schedmd.com/tutorials.html#tools|slurm's vidoe and tutorial links]]
 +  * [[https://crc.pitt.edu/getting-started/running-jobs-slurm|Running Jobs With SLURM @ CRC]]
   * [[https://github.com/LabNeuroCogDevel/PSC_free_all_t1/|LNCD code running freesurfer on bridges1 circa 2020]]   * [[https://github.com/LabNeuroCogDevel/PSC_free_all_t1/|LNCD code running freesurfer on bridges1 circa 2020]]
  
  
-===== Slurm options =====+===== sbatch options =====
  
-Jobs are submitted with options given to slurm. Here's a subset of important options: +Jobs are submitted with options given to ''sbatch''. Here's a subset of important options: 
  
   * ''-p RM-shared'' : the partition you are requesting resources from. The most common one is RM-shared, but there is also RM, RM-512, and EM (extreme memory)   * ''-p RM-shared'' : the partition you are requesting resources from. The most common one is RM-shared, but there is also RM, RM-512, and EM (extreme memory)
   * ''--time hh:mm:ss'' : maximum run time for your job. On RM-shared, the max run time appears to be 48:00:00. If the partition you are requesting is full/backed up, jobs with shorter run times are prioritized over those with longer requested times   * ''--time hh:mm:ss'' : maximum run time for your job. On RM-shared, the max run time appears to be 48:00:00. If the partition you are requesting is full/backed up, jobs with shorter run times are prioritized over those with longer requested times
   * ''--nodes'' : The number of nodes to use. Typically 1 is sufficient (and appears to be the max you can request on RM-shared)   * ''--nodes'' : The number of nodes to use. Typically 1 is sufficient (and appears to be the max you can request on RM-shared)
-  * ''--ntasks-per-node'' : The number of cores to use per node. Importantly, increasing the number of cores requested increases your job's memory (RAM) allocation. On RM-shared, each core comes with 1.95G memory. So four nodes e.g. will get you 7.81 GB+  * ''--ntasks-per-node'' : The number of cores to use per node. Importantly, increasing the number of cores requested increases your job's memory (RAM) allocation. On [[:tools:PSC]]'s ''RM-shared'' partition, each core comes with 1.95G memory. So four nodes e.g. will get you 7.81 GB. See [[https://www.psc.edu/resources/bridges-2/user-guide/#:~:text=specifically%20request%20memory.%20jobs%20are%20alloted%202gb%20of%20memory%20per%20core%20that%20is%20requested.%20|PSC user guide "RM-shared partition" section]]
   * ''-n'' : number of cores requested in total (useful if you are requesting >1 node and dividing requested cores over nodes)   * ''-n'' : number of cores requested in total (useful if you are requesting >1 node and dividing requested cores over nodes)
   * ''-J "$subid-$script"'' : The name of your job. By default, jobs are named by their job id, however you can customize the job name via variables like $subid   * ''-J "$subid-$script"'' : The name of your job. By default, jobs are named by their job id, however you can customize the job name via variables like $subid