summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BFS/baselines/cpu/Makefile2
-rw-r--r--MLP/baselines/cpu/Makefile7
-rw-r--r--SpMV/baselines/cpu/Makefile2
-rw-r--r--UNI/baselines/cpu/Makefile2
4 files changed, 8 insertions, 5 deletions
diff --git a/BFS/baselines/cpu/Makefile b/BFS/baselines/cpu/Makefile
index 6f082b1..1f6ed3c 100644
--- a/BFS/baselines/cpu/Makefile
+++ b/BFS/baselines/cpu/Makefile
@@ -2,7 +2,7 @@
all: bfs
bfs: app.c
- gcc -O2 -o bfs -fopenmp app.c
+ gcc -Wall -Wextra -pedantic -march=native -O2 -o bfs -fopenmp app.c
bfs_O0: app.c
gcc -o bfs_O0 -fopenmp app.c
diff --git a/MLP/baselines/cpu/Makefile b/MLP/baselines/cpu/Makefile
index e2e6780..3404638 100644
--- a/MLP/baselines/cpu/Makefile
+++ b/MLP/baselines/cpu/Makefile
@@ -1,7 +1,7 @@
all: mlp_openmp
mlp_openmp: mlp_openmp.c
- gcc -O2 mlp_openmp.c -o mlp_openmp -fopenmp -std=c99
+ 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
@@ -18,4 +18,7 @@ run_O0: mlp_openmp_O0
run_O2: mlp_openmp_O2
./mlp_openmp_O2
-.PHONY: all run run_O0 run_O2
+clean:
+ rm -f mlp_openmp mlp_openmp_O0 mlp_openmp_O2
+
+.PHONY: all run run_O0 run_O2 clean
diff --git a/SpMV/baselines/cpu/Makefile b/SpMV/baselines/cpu/Makefile
index 64b20db..5b2367b 100644
--- a/SpMV/baselines/cpu/Makefile
+++ b/SpMV/baselines/cpu/Makefile
@@ -1,7 +1,7 @@
all: spmv
spmv: app.c
- gcc -O2 -o spmv -fopenmp app.c
+ gcc -Wall -Wextra -pedantic -march=native -O2 -o spmv -fopenmp app.c
spmv_O0: app.c
gcc -o spmv_O0 -fopenmp app.c
diff --git a/UNI/baselines/cpu/Makefile b/UNI/baselines/cpu/Makefile
index ec3f403..bbf9db0 100644
--- a/UNI/baselines/cpu/Makefile
+++ b/UNI/baselines/cpu/Makefile
@@ -4,7 +4,7 @@ all: uni
TYPE ?= int64_t
uni: app_baseline.c
- gcc -O2 -o uni -fopenmp -DT=${TYPE} app_baseline.c
+ gcc -Wall -Wextra -pedantic -march=native -O2 -o uni -fopenmp -DT=${TYPE} app_baseline.c
uni_O0: app_baseline.c
gcc -o uni_O0 -fopenmp app_baseline.c