summaryrefslogtreecommitdiff
path: root/VA/dimes-hetsim-hbm.sh
blob: 7c0df73499a0dd3cd5df4224a824fc92603c4110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh

cd baselines/cpu

mkdir -p log/$(hostname)
fn=log/$(hostname)/dimes-hetsim-hbm

# upstream uses 167772160 * 2 * int32 == 2.5 GiB input and 1.25 GiB output for DPU version

(

make -B NUMA=1 NUMA_MEMCPY=1

echo "CPU single-node operation with setup cost, cpu/out on same node (1/4)" >&2

parallel -j1 --eta --joblog ${fn}.1.joblog --resume --header : \
	./va -i {input_size} -a {ram_in} -b {ram_out} -c {cpu} -C {ram_local} -t {nr_threads} -w 0 -e 40 \
	::: nr_threads 1 2 4 8 12 16 \
	::: ram_in $(seq 0 15) \
	:::        cpu $(seq 0 7) $(seq 0 7) \
	:::+ ram_local $(seq 0 15) \
	:::+   ram_out $(seq 0 15) \
	::: input_size 167772160

make -B NUMA=1

echo "single-node execution, cpu/out on same node (2/4)" >&2

parallel -j1 --eta --joblog ${fn}.2.joblog --resume --header : \
	./va -i {input_size} -a {ram_in} -b {ram_out} -c {cpu} -t {nr_threads} -w 0 -e 5 \
	::: nr_threads 1 2 4 8 12 16 \
	:::   ram_in $(seq 0 15) \
	:::      cpu $(seq 0 7) $(seq 0 7) \
	:::+ ram_out $(seq 0 15) \
	::: input_size 167772160

echo "single-node execution, in/out on same node (3/4)" >&2

parallel -j1 --eta --joblog ${fn}.3.joblog --resume --header : \
	./va -i {input_size} -a {ram_in} -b {ram_out} -c {cpu} -t {nr_threads} -w 0 -e 5 \
	::: nr_threads 1 2 4 8 12 16 \
	::: cpu $(seq 0 7) \
	:::   ram_in $(seq 0 15) \
	:::+ ram_out $(seq 0 15) \
	::: input_size 167772160

echo "multi-node execution (4/4)" >&2

parallel -j1 --eta --joblog ${fn}.4.joblog --resume --header : \
	./va -i {input_size} -a {ram_in} -b {ram_out} -c {cpu} -t {nr_threads} -w 0 -e 40 \
	::: nr_threads 32 48 64 96 128 \
	::: cpu -1 \
	::: ram_in $(seq 0 15) \
	::: ram_out $(seq 0 15) \
	::: input_size 167772160

) >> ${fn}.txt