Skip to content
Snippets Groups Projects
Commit ecd67fa2 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Pbs torque dependancy job submitting

parent 1f09d044
No related branches found
No related tags found
3 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...
......@@ -60,6 +60,38 @@ By default, the PBS batch system sends an email only when the job is aborted. Di
$ qsub -m n
```
#### Dependency Job Submission
To submit dependent jobs in sequence, use the `depend` function of `qsub`.
First submit the first job in a standard manner:
```console
$ qsub -A OPEN-0-0 -q qprod -l select=64:ncpus=36,walltime=02:00:00 ./firstjob
123456[].isrv1
```
Then submit the second job using the `depend` function:
```console
qsub -W depend=afterok:123456 ./secondjob
```
Both jobs will be queued, but the second job won't start until the first job has finished successfully.
Below is the list of arguments that can be used with `-W depend=dependency:jobid`:
| Argument | Description |
| ----------- | --------------------------------------------------------------- |
| after | This job is scheduled after `jobid` begins execution. |
| afterok | This job is scheduled after `jobid` finishes successfully. |
| afternotok | This job is scheduled after `jobid` finishes unsucessfully. |
| afterany | This job is scheduled after `jobid` finishes in any state. |
| before | This job must begin execution before `jobid` is scheduled. |
| beforeok | This job must finish successfully before `jobid` begins. |
| beforenotok | This job must finish unsuccessfully before `jobid` begins. |
| beforeany | This job must finish in any state before `jobid` begins. |
### Salomon - Intel Xeon Phi Co-Processors
To allocate a node with Xeon Phi co-processor, the user needs to specify that in the select statement. Currently only allocation of whole nodes with both Phi cards as the smallest chunk is supported. A standard PBSPro approach through the `accelerator`, `naccelerators`, and `accelerator_model` attributes is used. The `accelerator_model` can be omitted since on Salomon, only one type of accelerator type/model is available.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment