Page MenuHomec4science

execute_numa.sh
No OneTemporary

File Metadata

Created
Tue, Dec 3, 04:22

execute_numa.sh

#!/bin/bash
#SBATCH --chdir /scratch/ancarola
#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=numa
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=0 --membind=0 ./$NAME
echo ""
# select node 1
echo "Binding node 1"
numactl --cpunodebind=1 --membind=1 ./$NAME
echo ""
# interleaved mode
echo "Binding interleave all nodes"
numactl --interleave=all ./$NAME
echo FINISHED at `date`

Event Timeline