#!/bin/sh #< 2 nodes. Executes 1 MPI process per node and 68 threads per process #SBATCH --partition=knl #SBATCH --qos=knl #SBATCH --nodes=2 #SBATCH --ntasks=2 #SBATCH --cpus-per-task=68 #< Number of threads OpenMP for each process MPI #SBATCH --time=0-00:30:00 #SBATCH --mem=4G ## Uncomment the following line if you want to use an account other than your default account ##SBATCH --account= export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK module load intel intelmpi mpicc -qopenmp mpiomp_hello.c -o mpiomp_hello_knl mpirun mpiomp_hello_knl