#!/bin/bash
#PBS -A CSC103
#PBS -l nodes=256
#PBS -l walltime=01:59:00
#PBS -N spGEMMexp_G500_27_4096
#PBS -j oe
cd $MEMBERWORK/csc103

export OMP_NUM_THREADS=1
aprun -n 4096 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 64 64 1 G500 27 16 column
aprun -n 4050 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 45 45 2 G500 27 16 column
aprun -n 4096 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 32 32 4 G500 27 16 column
aprun -n 3872 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 22 22 8 G500 27 16 column
aprun -n 3888 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 18 18 12 G500 27 16 column
aprun -n 4096 -d 1 -N 16 -S 8 -cc depth ./mpipspgemm 16 16 16 G500 27 16 column

export OMP_NUM_THREADS=2
aprun -n 2025 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 45 45 1 G500 27 16 column
aprun -n 2048 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 32 32 2 G500 27 16 column
aprun -n 1936 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 22 22 4 G500 27 16 column
aprun -n 2048 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 16 16 8 G500 27 16 column
aprun -n 2028 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 13 13 12 G500 27 16 column
aprun -n 1936 -d 2 -N 8 -S 4 -cc depth ./mpipspgemm 11 11 16 G500 27 16 column

export OMP_NUM_THREADS=4
aprun -n 1024 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 32 32 1 G500 27 16 column
aprun -n 968 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 22 22 2 G500 27 16 column
aprun -n 1024 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 16 16 4 G500 27 16 column
aprun -n 968 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 11 11 8 G500 27 16 column
aprun -n 972 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 9 9 12 G500 27 16 column
aprun -n 1024 -d 4 -N 4 -S 2 -cc depth ./mpipspgemm 8 8 16 G500 27 16 column

export OMP_NUM_THREADS=8
aprun -n 484 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 22 22 1 G500 27 16 column
aprun -n 512 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 16 16 2 G500 27 16 column
aprun -n 484 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 11 11 4 G500 27 16 column
aprun -n 512 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 8 8 8 G500 27 16 column
aprun -n 432 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 6 6 12 G500 27 16 column
aprun -n 400 -d 8 -N 2 -S 1 -cc numa_node ./mpipspgemm 5 5 16 G500 27 16 column

export OMP_NUM_THREADS=16
aprun -n 256 -d 16 -N 1 ./mpipspgemm 16 16 1 G500 27 16 column
aprun -n 242 -d 16 -N 1 ./mpipspgemm 11 11 2 G500 27 16 column
aprun -n 256 -d 16 -N 1 ./mpipspgemm 8 8 4 G500 27 16 column
aprun -n 200 -d 16 -N 1 ./mpipspgemm 5 5 8 G500 27 16 column
aprun -n 192 -d 16 -N 1 ./mpipspgemm 4 4 12 G500 27 16 column
aprun -n 256 -d 16 -N 1 ./mpipspgemm 4 4 16 G500 27 16 column
