Page MenuHomec4science

execute_order_test.sh
No OneTemporary

File Metadata

Created
Tue, Nov 19, 10:40

execute_order_test.sh

#!/bin/bash
#SBATCH --chdir /scratch/jaugey
#SBATCH --nodes 1
#SBATCH --ntasks 1
#SBATCH --cpus-per-task 28
#SBATCH --mem 10G
#SBATCH --partition serial
#SBATCH --account cs307
#SBATCH --reservation CS307-ex
NAME=order
if [ -n "$1" ]; then
NAME=$1
fi
echo STARTING AT `date`
# local mode
echo "Local allocation"
numactl --localalloc ./$NAME
echo ""
# select node 0
echo "Binding node 0"
numactl --cpunodebind=1 --membind=0 ./$NAME
numactl --cpunodebind=1 --membind=0 ./$NAME
numactl --cpunodebind=1 --membind=0 ./$NAME
numactl --cpunodebind=1 --membind=0 ./$NAME
numactl --cpunodebind=1 --membind=0 ./$NAME
echo ""
# select node 1
echo "Binding node 1"
numactl --membind=1 ./$NAME
echo ""
# interleaved mode
echo "Binding interleave node 0"
numactl --interleave=0 ./$NAME
echo ""
# interleaved mode
echo "Binding interleave node 1"
numactl --interleave=1 ./$NAME
echo ""
# interleaved mode
echo "Binding interleave all nodes"
numactl --interleave=all ./$NAME
echo FINISHED at `date`

Event Timeline