#!/bin/bash
# Batch file for using the Intel APS trace facility
# on Marconi KNL
#
#SBATCH -N 4
#SBATCH --ntasks-per-node=64
#SBATCH --error=ta205-err.%j
#SBATCH --mem=80GB
#SBATCH --time=00:30:00
#SBATCH -A cin_staff
#SBATCH -p knl_usr_prod

start_time=$(date +"%s")
module purge
module load profile/knl
module load autoload  qe/6.3_knl
export OMP_NUM_THREADS=1
source $INTEL_HOME/performance_snapshots/apsvars.sh
srun --cpu-bind=cores aps  pw.x -npool 2 -ndiag 32 -input pw.in

end_time=$(date +"%s")
walltime=$(($end_time-$start_time))
echo "walltime $walltime"
