[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave for Mac with Reference Lapack
From: |
Lukas Reichlin |
Subject: |
Re: Octave for Mac with Reference Lapack |
Date: |
Tue, 29 May 2012 23:19:22 +0200 |
On 29.05.2012, at 21:54, c. wrote:
>
> 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.
I'm surprised to see it working, also on my machine. I fear it doesn't help
much, as Accelerate 10.6 used to be the best out of three:
1. Accelerate OSX 10.6
2. ATLAS 3.9 from MacPorts
3. Accelerate OSX 10.7
I don't have access to 10.7 this evening, and when I build the variant
octave-devel +atlas +fltk +gcc45
from the attached MacPorts portfile, mkoctfile returns
nothing for $(shell $(MKOCTFILE) -p LAPACK_LIBS)
framework veclib for $(shell $(MKOCTFILE) -p BLAS_LIBS)
Lukas
Portfile
Description: Binary data
- Re: Octave for Mac with Reference Lapack, (continued)
- 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., 2012/05/29
- Re: Octave for Mac with Reference Lapack,
Lukas Reichlin <=
- 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