Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] Pass -m32/-m64 to Lapack files compiled without optimization.


  • To: vsipl++@xxxxxxxxxxxxxxxx
  • Subject: [patch] Pass -m32/-m64 to Lapack files compiled without optimization.
  • From: Jules Bergmann <jules@xxxxxxxxxxxxxxxx>
  • Date: Wed, 18 Jan 2006 21:42:51 -0500

Assuming this looks OK, I'll apply this patch and restart the build after cugel gets rebooted. -- Jules
Index: ChangeLog
===================================================================
RCS file: /home/cvs/Repository/vpp/ChangeLog,v
retrieving revision 1.377
diff -u -r1.377 ChangeLog
--- ChangeLog	19 Jan 2006 00:49:01 -0000	1.377
+++ ChangeLog	19 Jan 2006 02:50:36 -0000
@@ -1,5 +1,11 @@
 2006-01-18 Jules Bergmann  <jules@xxxxxxxxxxxxxxxx>
 
+	* configure.ac (LAPACK_NOOPT): New substitution to pass -m32/-m64
+	  to LAPACK for building without optimization.
+	* vendor/lapack/make.inc.in (NOOPT): use LAPACK_NOOPT.
+
+2006-01-18 Jules Bergmann  <jules@xxxxxxxxxxxxxxxx>
+
 	* GNUmakefile.in (subdirs): Move tests near the end of the list so
 	  that it sees the fully initialized $(libs).
 	* configure: Pass compilers and flags to ATLAS and FFTW configure
Index: configure.ac
===================================================================
RCS file: /home/cvs/Repository/vpp/configure.ac,v
retrieving revision 1.75
diff -u -r1.75 configure.ac
--- configure.ac	19 Jan 2006 00:49:01 -0000	1.75
+++ configure.ac	19 Jan 2006 02:50:36 -0000
@@ -1226,6 +1226,17 @@
         lapack_use_ilaenv=0
         cblas_style="1"	# use cblas.h
 
+	# Determine flags for LAPACK_NOOPT, used for compiling with no
+	# optimization
+        if expr "$FFLAGS" : ".*-m32" > /dev/null; then
+	  LAPACK_NOOPT="-m32"
+        elif expr "$FFLAGS" : ".*-m64" > /dev/null; then
+	  LAPACK_NOOPT="-m64"
+	else
+	  LAPACK_NOOPT=""
+	fi
+	AC_SUBST(LAPACK_NOOPT)
+
         lapack_found="builtin"
         break
       else
Index: vendor/lapack/make.inc.in
===================================================================
RCS file: /home/cvs/Repository/lapack/make.inc.in,v
retrieving revision 1.2
diff -u -r1.2 make.inc.in
--- vendor/lapack/make.inc.in	1 Dec 2005 16:39:27 -0000	1.2
+++ vendor/lapack/make.inc.in	19 Jan 2006 02:50:36 -0000
@@ -21,7 +21,7 @@
 FORTRAN  = @F77@ 
 OPTS     = @FFLAGS@ -funroll-all-loops -O3
 DRVOPTS  = $(OPTS)
-NOOPT    =
+NOOPT    = @LAPACK_NOOPT@
 LOADER   = $(FORTRAN)
 LOADOPTS =
 #