User Tools

Site Tools


techstaff: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
Next revisionBoth sides next revision
techstaff:slurm [2016/01/05 09:01] – [More] kauffmantechstaff:slurm [2016/01/11 08:13] – [sbatch] kauffman
Line 123: Line 123:
 #!/bin/bash #!/bin/bash
 # #
-#SBATCH --mail-user=user@cs.uchicago.edu+#SBATCH --mail-user=cnetid@cs.uchicago.edu
 #SBATCH --mail-type=ALL #SBATCH --mail-type=ALL
-#SBATCH --output=/home/user/slurm/slurm_out/%j.%N.stdout +#SBATCH --output=/home/cnetid/slurm/slurm_out/%j.%N.stdout 
-#SBATCH --error=/home/user/slurm/slurm_out/%j.%N.stderr +#SBATCH --error=/home/cnetid/slurm/slurm_out/%j.%N.stderr 
-#SBATCH --workdir=/home/user/slurm+#SBATCH --workdir=/home/cnetid/slurm
 #SBATCH --partition=debug #SBATCH --partition=debug
 #SBATCH --job-name=check_hostname_of_node #SBATCH --job-name=check_hostname_of_node
Line 140: Line 140:
   man sbatch   man sbatch
  
-Make sure to replace all instances of the word ''%%user%%'' with your CNETID.+Make sure to replace all instances of the word ''%%cnetid%%'' with your CNETID.
  
 ==== srun ==== ==== srun ====
Line 203: Line 203:
  
 This command: This command:
-   srun -p general --pty --mem 500 -t 0-06:00 /bin/bash+   srun -p general --pty --cpus-per-task 1 --mem 500 -t 0-06:00 /bin/bash
 will start a command line shell (''%%/bin/bash%%'') on the 'general' queue with 500 MB of RAM for 6 hours; 1 core on 1 node is assumed as these parameters (''%%-n 1 -N 1%%'') were left out. When the interactive session starts, you will notice that you are no longer on a login node, but rather one of the compute nodes dedicated to this queue. The ''%%--pty%%'' option allows the session to act like a standard terminal. will start a command line shell (''%%/bin/bash%%'') on the 'general' queue with 500 MB of RAM for 6 hours; 1 core on 1 node is assumed as these parameters (''%%-n 1 -N 1%%'') were left out. When the interactive session starts, you will notice that you are no longer on a login node, but rather one of the compute nodes dedicated to this queue. The ''%%--pty%%'' option allows the session to act like a standard terminal.
- 
 ====== Job Scheduling ====== ====== Job Scheduling ======
  
/var/lib/dokuwiki/data/pages/techstaff/slurm.txt · Last modified: 2021/01/06 16:13 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki