You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
edoardocoli 4ce77085f7 SortingAlgorithm 9 months ago
..
AllReduce MPI sorter with buffers, missing SnowPlow technique 1 year ago
Barrier MPI sorter with buffers, missing SnowPlow technique 1 year ago
Broadcast MPI sorter with buffers, missing SnowPlow technique 1 year ago
Communicators MPI sorter with buffers, missing SnowPlow technique 1 year ago
Gather MPI sorter with buffers, missing SnowPlow technique 1 year ago
Groups MPI sorter with buffers, missing SnowPlow technique 1 year ago
Hello_World MPI sorter with buffers, missing SnowPlow technique 1 year ago
Messaging MPI sorter with buffers, missing SnowPlow technique 1 year ago
MessagingBarrier MPI sorter with buffers, missing SnowPlow technique 1 year ago
MessagingRing MPI sorter with buffers, missing SnowPlow technique 1 year ago
Reduce MPI sorter with buffers, missing SnowPlow technique 1 year ago
Scatter MPI sorter with buffers, missing SnowPlow technique 1 year ago
Makefile SortingAlgorithm 9 months ago
README MPI sorter with buffers, missing SnowPlow technique 1 year ago

README

# Usage of cluster with slurm

Information about che cluster and partitions could be obtained doing:
 sinfo
 scontrol show partition

With srun we cen reserve a subset of the resources of the compute nodes for out tasks:
More parameters are provided in the documentation.
 srun --partition=production --time=00:30:00 --nodes=1 --pty bash -i
 (take for half hour 1 node from the production partition and launch the command 'bash -i')

To simplify all this expression we can create a basic batch file with all directives and the code to run.
Is a good thing to redirect the output in a file to save it securely.
 sbatch run.sh

Example of batch script
 #!/bin/bash
 #SBATCH -n 10
 #SBATCH --time=00:30:00
 ...
 mpirun ./my_exec_code

To see the queue of jobs in the system we can run
 squeue
 squeue --long

To remove a job from the queue we can run
 scancel <job/process_id>