Page MenuHomePhabricator

Slurm
Updated 2,417 Days AgoPublic

install
#!/bin/bash

sudo apt-get install slurm-llnl libslurm-dev \
mpich libpmi0 libpmi-dev munge

sudo create-munge-key

#Generate a slurm configuration for /etc/slurm-llnl/slurm.conf
#https://slurm.schedmd.com/configurator.easy.html


#Munge wont run with g+w permissions
chmod g-w /var/log

sudo /etc/init.d/munge restart
sudo /etc/init.d/slurmd restart
sudo /etc/init.d/slurmctld restart

#Test slurm
srun -n4 hostname

#Compile
mpicc mpi_hello.c -o mpi_hello

srun -n4 --mpi=pmi2 mpi_hello

#sbatch is used to queue jobs.
#Read about it here: http://slurm.schedmd.com/sbatch.html#lbAH

Here are a list of MPI exercises from Lawrence Livermore National Lab that you can experiment with:
https://computing.llnl.gov/tutorials/mpi/exercise.html

Last Author
newellz2
Last Edited
Oct 6 2017, 6:13 PM

Event Timeline

newellz2 edited the content of this document. (Show Details)