[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave for Mac with Reference Lapack
From: |
c. |
Subject: |
Re: Octave for Mac with Reference Lapack |
Date: |
Tue, 29 May 2012 21:54:34 +0200 |
On 29 May 2012, at 20:36, Lukas Reichlin wrote:
> Oops, Sorry, of course you are getting perfect results: octave-devel also
> includes the reference lapack :-) See the Makefile in the "src" subfolder.
I made this change to the Makefile:
$ svn diff
Index: Makefile
===================================================================
--- Makefile (revision 10533)
+++ Makefile (working copy)
@@ -1,5 +1,5 @@
-# LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)
-# BLAS_LIBS := $(shell mkoctfile -p BLAS_LIBS)
+LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)
+BLAS_LIBS := $(shell mkoctfile -p BLAS_LIBS)
FLIBS := $(shell mkoctfile -p FLIBS)
all: devel_slicot_functions.oct
@@ -23,9 +23,9 @@
rm -rf *.o *.f lapack-3.4.1
# slicot functions
-devel_slicot_functions.oct: devel_slicot_functions.cc slicotlibrary.a
lapacklibrary.a
- mkoctfile devel_slicot_functions.cc common.cc slicotlibrary.a
lapacklibrary.a \
- ${FLIBS}
+devel_slicot_functions.oct: devel_slicot_functions.cc slicotlibrary.a
+ mkoctfile devel_slicot_functions.cc common.cc slicotlibrary.a \
+ $(BLAS_LIBS) $(LAPACK_LIBS) $(FLIBS)
clean:
rm -rf *.o core octave-core *.oct *~ *.f slicot lapack-3.4.1
and checked that vecLib is actually linked:
$ otool -L devel_slicot_functions.oct
devel_slicot_functions.oct:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
(compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.11)
/opt/octave/3.7/lib/octave/3.7.0+/liboctinterp.1.dylib (compatibility
version 2.0.0, current version 2.1.0)
/opt/octave/3.7/lib/octave/3.7.0+/liboctave.1.dylib (compatibility
version 2.0.0, current version 2.1.0)
/opt/octave/3.7/lib/octave/3.7.0+/libcruft.1.dylib (compatibility
version 2.0.0, current version 2.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.9.0)
/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
(compatibility version 1.0.0, current version 268.0.1)
and I still get "correct" results:
PowerPlant:
...
err = 0.22350
st = 1
DestillationME:
err = 0.13644
> Lukas
c.
- Re: Octave for Mac with Reference Lapack, (continued)
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/29
- Re: Octave for Mac with Reference Lapack,
c. <=
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29
- Re: Octave for Mac with Reference Lapack, c., 2012/05/30
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/30
- Re: Octave for Mac with Reference Lapack, Alexander Hansen, 2012/05/30
- Re: Octave for Mac with Reference Lapack, Alexander Hansen, 2012/05/31
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/31
- Re: Octave for Mac with Reference Lapack, Lukas Reichlin, 2012/05/29