k8s-hpc-demo/demos/calculate_pi/slurm_submit_calculate_pi.sh
2019-05-01 15:08:23 -05:00

11 lines
213 B
Bash

#!/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