summaryrefslogtreecommitdiff
path: root/UNI/baselines/cpu/Makefile
blob: 10e4f9b91693befeba6e8b435b91c31d39faeec7 (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
.PHONY: all
all: uni

TYPE ?= int64_t

uni: app_baseline.c
	gcc -O2 -o uni -fopenmp -DT=${TYPE} app_baseline.c

uni_O0: app_baseline.c
	gcc -o uni_O0 -fopenmp app_baseline.c

uni_O2: app_baseline.c
	gcc -O2 -o uni_O2 -fopenmp app_baseline.c

.PHONY: run
run: uni
	./uni -i 1258291200 -t 4

.PHONY: run_O0
run_O0: uni_O0
	./uni_O0 -i 1258291200 -t 4

.PHONY: run_O2
run_O2: uni_O2
	./uni_O2 -i 1258291200 -t 4

.PHONY: clean
clean:
	rm -f uni uni_O0 uni_O2