Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:services:application_services:high_performance_computing:running_jobs_slurm [2019/06/12 11:18]
mboden [CPU Selection]
en:services:application_services:high_performance_computing:running_jobs_slurm [2019/06/12 11:24] (current)
mboden [Interactive session on the nodes]
Line 247: Line 247:
 As stated before, ''​sbatch''​ is used to submit jobs to the cluster, but there is also ''​srun''​ command wich can be used to execute a task directly on the allocated nodes. That command is helpful to start interactive session on the node. You can use interactive session to avoid running large tests on the frontend (a good idea!) you can get an interactive session (with the bash shell) on one of the ''​medium''​ nodes with As stated before, ''​sbatch''​ is used to submit jobs to the cluster, but there is also ''​srun''​ command wich can be used to execute a task directly on the allocated nodes. That command is helpful to start interactive session on the node. You can use interactive session to avoid running large tests on the frontend (a good idea!) you can get an interactive session (with the bash shell) on one of the ''​medium''​ nodes with
  
-<​code>​srun --pty -p medium -N 1 -16 /​bin/​bash</​code>​+<​code>​srun --pty -p medium -N 1 -16 /​bin/​bash</​code>​
 \\ \\
-''<​nowiki>​--pty</​nowiki>''​ requests support for an interactive shell, and ''​-p medium''​ the corresponding partition. ''​-16''​ ensures that you 16 cores on the node. You will get a shell prompt, as soon as a suitable node becomes available. Single thread, non-interactive jobs can be run with+''<​nowiki>​--pty</​nowiki>''​ requests support for an interactive shell, and ''​-p medium''​ the corresponding partition. ''​-16''​ ensures that you 16 cpus on the node. You will get a shell prompt, as soon as a suitable node becomes available. Single thread, non-interactive jobs can be run with
 <​code>​srun -p medium ./​myexecutable</​code>​ <​code>​srun -p medium ./​myexecutable</​code>​