summaryrefslogtreecommitdiff
path: root/MLP/baselines/cpu/Makefile
blob: 34046388a9d597694cf08a80e1b6d19223d4c23b (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
all: mlp_openmp

mlp_openmp: mlp_openmp.c
	gcc -Wall -Wextra -pedantic -march=native -O2 mlp_openmp.c -o mlp_openmp -fopenmp -std=c99

mlp_openmp_O0: mlp_openmp.c
	gcc mlp_openmp.c -o mlp_openmp_O0 -fopenmp -std=c99

mlp_openmp_O2: mlp_openmp.c
	gcc -O2 mlp_openmp.c -o mlp_openmp_O2 -fopenmp -std=c99

run: mlp_openmp
	./mlp_openmp

run_O0: mlp_openmp_O0
	./mlp_openmp_O0

run_O2: mlp_openmp_O2
	./mlp_openmp_O2

clean:
	rm -f mlp_openmp mlp_openmp_O0 mlp_openmp_O2

.PHONY: all run run_O0 run_O2 clean