summaryrefslogtreecommitdiff
path: root/MLP/baselines/cpu/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-26 11:01:30 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-26 11:01:30 +0200
commit158bed0f093357150e80861eb731e6bc8fa77bdf (patch)
treefb9f87e6149b09f7b936f0ec2d7b6c7d4634ea20 /MLP/baselines/cpu/Makefile
parent03b2d28986e0425c896ae99c196678107be7c222 (diff)
port MLP cpu baseline to dfatool
Diffstat (limited to 'MLP/baselines/cpu/Makefile')
-rw-r--r--MLP/baselines/cpu/Makefile23
1 files changed, 20 insertions, 3 deletions
diff --git a/MLP/baselines/cpu/Makefile b/MLP/baselines/cpu/Makefile
index 581897e..e2e6780 100644
--- a/MLP/baselines/cpu/Makefile
+++ b/MLP/baselines/cpu/Makefile
@@ -1,4 +1,21 @@
-all:
- gcc mlp_openmp.c -o mlp_openmp -fopenmp -std=c99
-run:
+all: mlp_openmp
+
+mlp_openmp: mlp_openmp.c
+ gcc -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
+
+.PHONY: all run run_O0 run_O2