#!/bin/bash

#SBATCH --partition=sixhour                   # Partition Name (Required)
#SBATCH --ntasks-per-node=10                # 10 tasks with each task given 1 c
##SBATCH --ntasks=30
#SBATCH --nodes=2                # Run across 2 nodes
#SBATCH --constraint=ib             # Only nodes with Infiniband (ib)
#SBATCH --mem-per-cpu=4gb           # Job memory request
#SBATCH --time=00:10:00               # Time limit hrs:min:sec
#SBATCH --output=mpi_%j.log    # Standard output and error log
 
echo "Running on $SLURM_JOB_NODELIST nodes using $SLURM_CPUS_PER_NODE cores"

env | grep SLURM

mpirun ./mpi_hello_world
