summaryrefslogtreecommitdiff
path: root/MLP/baselines/cpu/Makefile
diff options
context:
space:
mode:
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