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.raw
|
||||
fmr_omp-str_base-prog
|
||||
fmr_omp-str_base.txt
|
||||
fmr_omp-str_base.S
|
||||
output*.dat
|
||||
lattice
|
||||
pipeline_template
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
fmr_omp-str_base: fmr_omp-str_base.S
|
||||
gcc $(CFLAGS) -fopenmp -o $@ $< -lm
|
||||
CFLAGS?=-Wall -Wextra
|
||||
|
||||
fmr_omp-str_base.S: fmr_omp-str_base.c
|
||||
gcc $(CFLAGS) -S -fopenmp -o $@ $<
|
||||
all: fmr_omp-str_base-prog fmr_omp-str_base-prog-fopenmp
|
||||
|
||||
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