Commit 2e833508 authored by Giuseppe Fiameni's avatar Giuseppe Fiameni
Browse files

Update README.md

parent 4566063b
Pipeline #146 failed with stages
......@@ -38,11 +38,11 @@ sbatch: Submitted batch job 99999999
Simple submission script
```
The job then enters the queue in the PENDING state. Once resources become available and the job has highest priority, an allocation is created for it and it goes to the RUNNING state. If the job completes correctly, it goes to the COMPLETED state, otherwise, it is set to the FAILED state.
The job then enters the queue in the **PENDING** state. Once resources become available and the job has highest priority, an allocation is created for it and it goes to the **RUNNING** state. If the job completes correctly, it goes to the **COMPLETED** state, otherwise, it is set to the **FAILED** state.
Interestingly, you can get near-realtime information about your running program (memory consumption, etc.) with the sstat command, by introducing sstat -j jobid. You can select what you want sstat to output with the --format parameter. Refer to the manpage for more information man sstat.
Upon completion, the output file contains the result of the commands run in the script file. In the above example, you can see it with cat res.txt command.
Upon completion, the output file contains the result of the commands run in the script file. In the above example, you can see it with `cat res.out` command.
This example illustrates a serial job which runs a single CPU on a single node. It does not take advantage of multi-processor nodes or the multiple compute nodes available with a cluster. The next sections explain how to create parallel jobs.
......@@ -61,7 +61,7 @@ Tasks are requested/created with the `--ntasks` option, while CPUs, for the mult
## More submission script examples
Here are some quick sample submission scripts. For more detailed information, make sure to have a look at the Slurm FAQ and to follow our training sessions. There is also an interactive Script Generation Wizard you can use to help you in submission scripts creation.
Here are some quick sample submission scripts.
**Message passing example (MPI)**
......@@ -87,7 +87,7 @@ srun hello_mpi_world
```
Request four cores on the cluster for 10 minutes, using 100 MB of RAM per core. Assuming hello.mpi was compiled with MPI support, srun will create four instances of it, on the nodes allocated by Slurm.
Request four cores on the cluster for 10 minutes, using 100 MB of RAM per core. Assuming `hello_mpi_world` was compiled with MPI support, `srun` will create four instances of it, on the nodes allocated by Slurm.
You can try the above example by using the example hello world program (`hello_mpi_world.c`), and compiling it with
......@@ -96,7 +96,7 @@ module load autoload intelmpi
mpicc hello_mpi_world.c -o hello_mpi_world
```
The res_mpi.out file should contain something like:
The `res_mpi.out` file should contain something like:
```
We have 4 processors
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment