rsnt_translations
56,430
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<!--T:2--> | <!--T:2--> | ||
You prepare a small text file called a <i>job script</i> that basically says what program to run, where to get the input, and where to put the output. You <i>submit</i> this job script to a piece of software called the <i>scheduler</i> which decides when and where it will run. Once the job has finished you can retrieve the results of the calculation. Normally there is no interaction between you and the program while the job is running, although you can check on its progress if you wish. | You prepare a small text file called a <i>job script</i> that basically says what program to run, where to get the input, and where to put the output. You <i>submit</i> this job script to a piece of software called the <i>scheduler</i> which decides when and where it will run. Once the job has finished, you can retrieve the results of the calculation. Normally there is no interaction between you and the program while the job is running, although you can check on its progress if you wish. | ||
<!--T:3--> | <!--T:3--> | ||
Line 19: | Line 19: | ||
sleep 30 | sleep 30 | ||
}} | }} | ||
It runs the programs <code>echo</code> and <code>sleep</code>, there is no input, and the output will go to a default location. Lines starting with <code>#SBATCH</code> are directives to the scheduler, | It runs the programs <code>echo</code> and <code>sleep</code>, there is no input, and the output will go to a default location. Lines starting with <code>#SBATCH</code> are directives to the scheduler, providing information about what the job needs to run. This job, for example, only needs one minute of run time (00:01:00). | ||
== The job scheduler == <!--T:4--> | == The job scheduler == <!--T:4--> | ||
Line 54: | Line 54: | ||
<!--T:10--> | <!--T:10--> | ||
Look at the ST column in the output of [[Running_jobs#Monitoring_jobs | sq]] to determine the status of your jobs. The two most common states are PD for <i>pending</i> and R for <i>running</i>. When the job has finished it no longer appears in the <code>sq</code> output. | Look at the ST column in the output of [[Running_jobs#Monitoring_jobs | sq]] to determine the status of your jobs. The two most common states are PD for <i>pending</i> and R for <i>running</i>. When the job has finished, it no longer appears in the <code>sq</code> output. | ||
<!--T:11--> | <!--T:11--> |