diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-26 11:01:30 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-26 11:01:30 +0200 |
commit | 158bed0f093357150e80861eb731e6bc8fa77bdf (patch) | |
tree | fb9f87e6149b09f7b936f0ec2d7b6c7d4634ea20 /MLP/baselines/cpu/Makefile | |
parent | 03b2d28986e0425c896ae99c196678107be7c222 (diff) |
port MLP cpu baseline to dfatool
Diffstat (limited to 'MLP/baselines/cpu/Makefile')
-rw-r--r-- | MLP/baselines/cpu/Makefile | 23 |
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 |