blob: 7c7a690fef40759531c5cd858b91f32efa9842a7 (
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
|
NUMA ?= 0
FLAGS =
ifeq (${NUMA}, 1)
FLAGS += -lnuma
endif
.PHONY: all
all: sel
TYPE ?= uint64_t
sel: app_baseline.c
gcc -Wall -Wextra -pedantic -march=native -O2 -o sel -fopenmp -DT=${TYPE} -DNUMA=${NUMA} app_baseline.c ${FLAGS}
sel_O0: app_baseline.c
gcc -o sel_O0 -fopenmp app_baseline.c
sel_O2: app_baseline.c
gcc -O2 -o sel_O2 -fopenmp app_baseline.c
.PHONY: run
run: sel
./sel -i 1258291200 -t 4
# upstream code does not include -e 20 and does 3 iterations instead
.PHONY: run_O0
run_O0: sel_O0
./sel_O0 -i 1258291200 -t 4 -e 20
.PHONY: run_O2
run_O2: sel_O2
./sel_O2 -i 1258291200 -t 4 -e 20
.PHONY: clean
clean:
rm -f sel sel_O0 sel_O2
|