From c5cf8b3f686db14f6d1950f0c28a651b9a939e9f Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 29 May 2023 14:45:23 +0200 Subject: [PATCH 1/2] remove include --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5143ee4..f26bc0a 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ endif .ONESHELL: include $(JULIAHOME)/Make.inc -include $(JULIAHOME)/deps/Versions.make NODEJSBIN = node @@ -53,7 +52,7 @@ export OMP_NUM_THREADS=1 export GOTO_NUM_THREADS=1 export OPENBLAS_NUM_THREADS=1 -perf.h: $(JULIAHOME)/deps/Versions.make +perf.h: echo '#include "cblas.h"' > $@ echo '#include "$(DSFMTDIR)/dSFMT.c"' >> $@ From b6680078e761d423f8900193edd648ea4d541d2f Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 29 May 2023 14:53:37 +0200 Subject: [PATCH 2/2] add LDFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f26bc0a..2a6ce78 100644 --- a/Makefile +++ b/Makefile @@ -57,11 +57,11 @@ perf.h: echo '#include "$(DSFMTDIR)/dSFMT.c"' >> $@ bin/perf%: perf.c perf.h - $(CC) -std=c99 -O$* $< -o $@ -I$(DSFMTDIR) -lopenblas -L$(LIBMDIR) $(LIBM) $(CFLAGS) -lpthread + $(CC) -std=c99 -O$* $< -o $@ -I$(DSFMTDIR) $(LDFLAGS) -lopenblas -L$(LIBMDIR) $(LIBM) $(CFLAGS) -lpthread bin/fperf%: perf.f90 mkdir -p mods/$@ #Modules for each binary go in separate directories - $(FC) $(FFLAGS) -Jmods/$@ -O$* $< -o $@ -lopenblas -L$(LIBMDIR) $(LIBM) -lpthread + $(FC) $(FFLAGS) -Jmods/$@ -O$* $< -o $@ $(LDFLAGS) -lopenblas -L$(LIBMDIR) $(LIBM) -lpthread benchmarks/c.csv: \ benchmarks/c0.csv \