... | ... | @@ -39,9 +39,20 @@ $ srun --partition x40 --time 0:1:0 hostname |
|
|
x033.cluster
|
|
|
$
|
|
|
```
|
|
|
* The `--partition <partition name>` is required to select the partition
|
|
|
* The `--time <hh:mm:ss>` is required to select the expected runtime upper bound. This option is not mandatory, but he default runtime is very short.
|
|
|
* The `--partition <partition name>` (`-p <partition name name>` for short) is required to select the partition
|
|
|
* The `--time <hh:mm:ss>` (`-t <hh:mm:ss>` for short) is required to select the expected runtime upper bound. This option is not mandatory, but he default runtime is very short.
|
|
|
|
|
|
Let say you have a big compilation to run and assuming you build system support parallel build, you can easily dedicate a full node to that task:
|
|
|
```
|
|
|
$ srun -p fdr --nodes 1 --exclusive -t 0:10:0 make -j
|
|
|
...
|
|
|
[100%] Built target test_isonug_dependencies
|
|
|
[100%] Built target test_restart_rad_dependencies
|
|
|
$
|
|
|
```
|
|
|
* `--nodes <n>` (-N <n> for short) allocate one node to the task.
|
|
|
* `--exclusive` wont share the node with another task.
|
|
|
* `make -j` our parallel make task
|
|
|
|
|
|
## sbatch script
|
|
|
|
... | ... | |