diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-04 09:40:07 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-04 09:40:07 +0200 |
commit | b08b2c4c2a51e9e49c6d38a153ca5e0269e8272b (patch) | |
tree | 2326d92d33f898194a7357261466adba3c56ad68 /GEMV/dimes-hetsim.sh | |
parent | 6ea34c34074793b4989614207ffe414cd3824e6b (diff) |
GEMV: Add NUMA variant for HBM evaluation
Diffstat (limited to 'GEMV/dimes-hetsim.sh')
-rwxr-xr-x | GEMV/dimes-hetsim.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/GEMV/dimes-hetsim.sh b/GEMV/dimes-hetsim.sh new file mode 100755 index 0000000..d7163d5 --- /dev/null +++ b/GEMV/dimes-hetsim.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +cd baselines/cpu +make -B NUMA=1 + +mkdir -p log/$(hostname) +fn=log/$(hostname)/$(date +%Y%m%d)-baseline.txt + +# gemv hardcodes 167772160 double elements → 1.25 GiB of data + +( + +for i in `seq 1 20`; do + for nr_threads in 1 2 4 8 12 16; do + for cpu in 0 1 2 3 4 5 6 7; do + for ram in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do + OMP_NUM_THREADS=$nr_threads ./gemv $ram $ram $cpu + done + done + done + for nr_threads in 32 48 64 96 128; do + for ram in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do + OMP_NUM_THREADS=$nr_threads ./gemv $ram $ram -1 + done + done +done + +) | tee $fn + +xz -f -v -9 -M 800M $fn |