k8s-hpc-demo/demos/calculate_pi/slurm_submit_calculate_pi.sh

11 lines
213 B
Bash
Raw Normal View History

2019-05-01 20:08:23 +00:00
#!/bin/bash
#SBATCH --ntasks=6
# Requires python3, a configured MPI environment
# and the Python packages mpi4py and numpy to be
# available in PATH.
cd $SLURM_SUBMIT_DIR
mpiexec -n 6 python3 ./calculate_pi.py