Update Makefile for fmr_omp-str_base generation
This commit is contained in:
parent
e07d4d39ab
commit
502ec92654
|
@ -1,7 +1,5 @@
|
||||||
fmr_omp-str_base
|
fmr_omp-str_base-prog
|
||||||
fmr_omp-str_base.raw
|
|
||||||
fmr_omp-str_base.txt
|
fmr_omp-str_base.txt
|
||||||
fmr_omp-str_base.S
|
|
||||||
output*.dat
|
output*.dat
|
||||||
lattice
|
lattice
|
||||||
pipeline_template
|
pipeline_template
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
fmr_omp-str_base: fmr_omp-str_base.S
|
CFLAGS?=-Wall -Wextra
|
||||||
gcc $(CFLAGS) -fopenmp -o $@ $< -lm
|
|
||||||
|
|
||||||
fmr_omp-str_base.S: fmr_omp-str_base.c
|
all: fmr_omp-str_base-prog fmr_omp-str_base-prog-fopenmp
|
||||||
gcc $(CFLAGS) -S -fopenmp -o $@ $<
|
|
||||||
|
runall: runfmrprog runfmrprog-fopenmp
|
||||||
|
|
||||||
|
fmr_omp-str_base-%: fmr_omp-str_base.c
|
||||||
|
gcc $(CFLAGS) $(subst prog,,$*) -o $@ $< -lm
|
||||||
|
|
||||||
|
runfmr%: fmr_omp-str_base-%
|
||||||
|
perf stat -r 10 ./$<
|
||||||
|
rm fmr_omp-str_base-$*.txt
|
||||||
|
|
||||||
|
.PHONY: runall runfmr%
|
||||||
|
|
Loading…
Reference in New Issue