pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/benchmarks/benchfft When using g95, build brenner.f wi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/66da927564cc
branches: trunk
changeset: 310525:66da927564cc
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jul 17 14:58:05 2018 +0000
description:
When using g95, build brenner.f without optimisation to avoid ICE.
Drop gfortran requirement.
diffstat:
benchmarks/benchfft/Makefile | 11 ++++++++---
benchmarks/benchfft/distinfo | 4 ++--
benchmarks/benchfft/patches/patch-ad | 20 ++++++++++++++++----
3 files changed, 26 insertions(+), 9 deletions(-)
diffs (87 lines):
diff -r 3782cabdfaa3 -r 66da927564cc benchmarks/benchfft/Makefile
--- a/benchmarks/benchfft/Makefile Tue Jul 17 13:10:58 2018 +0000
+++ b/benchmarks/benchfft/Makefile Tue Jul 17 14:58:05 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2017/01/19 18:52:03 agc Exp $
+# $NetBSD: Makefile,v 1.41 2018/07/17 14:58:05 joerg Exp $
DISTNAME= benchfft-2.0
PKGREVISION= 5
@@ -15,7 +15,6 @@
USE_TOOLS+= gmake csh:run
USE_LANGUAGES= c fortran77
USE_LIBTOOL= yes
-PKGSRC_FORTRAN= gfortran
LIBTOOL_OVERRIDE= libtool ../fftw-*/libtool
CONFIG_GUESS_OVERRIDE= config.guess ../fftw-*/config.guess
@@ -34,7 +33,13 @@
${INSTALL_SCRIPT} ${WRKSRC}/submit-script \
${DESTDIR}${PREFIX}/bin/run-fftbench
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+
+.if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95)
+MAKE_ENV+= G95_NO_OPT=-O0
+.else
+MAKE_ENV+= G95_NO_OPT=
+.endif
benchmark:
.if defined(BATCH)
diff -r 3782cabdfaa3 -r 66da927564cc benchmarks/benchfft/distinfo
--- a/benchmarks/benchfft/distinfo Tue Jul 17 13:10:58 2018 +0000
+++ b/benchmarks/benchfft/distinfo Tue Jul 17 14:58:05 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2015/11/03 00:25:49 agc Exp $
+$NetBSD: distinfo,v 1.14 2018/07/17 14:58:05 joerg Exp $
SHA1 (benchfft-2.0.tar.gz) = b49cbad9d390e54d3afe661d51d3dce7b3d6435e
RMD160 (benchfft-2.0.tar.gz) = bd9ef45e633b8384c836e32e1e1cee877495bb26
@@ -11,7 +11,7 @@
SHA1 (patch-aa) = 11c7d759af18a51da99231c964a079147656c9cc
SHA1 (patch-ab) = 1c1be2e043ea9280f70dddd8082d20e929ea9d49
SHA1 (patch-ac) = 24a1f01426f7e905f5033202b075786f2a632aa4
-SHA1 (patch-ad) = bb9d22c526a5f9ef4c187893a964ae2d0d71ea80
+SHA1 (patch-ad) = 7c168d745cfe76a0424fafd9eea760ccc642f540
SHA1 (patch-ae) = afe38ba1f8d8d3497e5d6a8c722f4ab11b6f1c3a
SHA1 (patch-af) = b301bdb6707f448fae83d1f0659ae966e3869027
SHA1 (patch-ag) = a08153a6a8800184e7d186bf44a36f11372e853c
diff -r 3782cabdfaa3 -r 66da927564cc benchmarks/benchfft/patches/patch-ad
--- a/benchmarks/benchfft/patches/patch-ad Tue Jul 17 13:10:58 2018 +0000
+++ b/benchmarks/benchfft/patches/patch-ad Tue Jul 17 14:58:05 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-ad,v 1.6 2012/01/12 12:36:13 hans Exp $
+$NetBSD: patch-ad,v 1.7 2018/07/17 14:58:05 joerg Exp $
link required fortran library.
---- Makefile.in.orig Tue Oct 20 12:42:00 1998
-+++ Makefile.in Fri May 12 17:11:17 2000
+--- Makefile.in.orig 1998-10-20 16:42:00.000000000 +0000
++++ Makefile.in
@@ -365,7 +365,7 @@ LIBPATHS = -L$(FFTWDIR)/fftw/.libs -L$(F
INCLUDE_FLAGS = -I. -I$(FFTWDIR)/fftw -I$(FFTWDIR)/src -I$(FFTWDIR)/rfftw
@@ -21,7 +21,19 @@
F90 = @F90@
F90FLAGS = @FFLAGS@
-@@ -495,7 +496,7 @@ bench_utils.o: bench_utils.h bench-confi
+@@ -393,8 +394,10 @@ all: bench
+ -DFFLAGS="\"$(FFLAGS)\"" \
+ $< -o $@
+
++FFLAGS.f_source/brenner.f= $(G95_NO_OPT)
++
+ .f.o:
+- $(F77) -c $(FFLAGS) $< -o $@
++ $(F77) -c $(FFLAGS) $(FFLAGS.$<) $< -o $@
+
+ ###########################################################################
+
+@@ -495,7 +498,7 @@ bench_utils.o: bench_utils.h bench-confi
bench.o: bench_utils.h bench-config.h
bench: $(OBJECTS)
Home |
Main Index |
Thread Index |
Old Index