help-octave
[Top][All Lists]
Advanced

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

Re: Compile problem


From: Quentin Spencer
Subject: Re: Compile problem
Date: Tue, 22 Nov 2005 11:50:31 -0600
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Paul Koufalas wrote:

Quentin Spencer wrote:

Andrew Case wrote:

Thanks.  I figured out how to use the Fedora Extras and managed to get
octave up and running.

One more thing: if you're using the Fedora Extras version of Octave, I'd strongly recommend installing atlas, which is a faster version of lapack and blas, which are installed by default. There are different packages available that are optimized for different CPUs, so I recommend installing the one best suited to your hardware:

atlas: all CPUs
atlas-sse: Pentium III and newer
atlas-sse2: Pentium 4
atlas-3dnow: Athlon

-Quentin

And after you install it, you might like to check you are actually using it. On my Ubuntu (Debian derivative) distro,

# ldd /usr/bin/octave

liboctinterp.so => /usr/lib/octave-2.1.64/liboctinterp.so (0xb77f5000)
       liboctave.so => /usr/lib/octave-2.1.64/liboctave.so (0xb71b9000)
       libcruft.so => /usr/lib/octave-2.1.64/libcruft.so (0xb715b000)
       liblapack.so.3 => /usr/lib/atlas/sse2/liblapack.so.3 (0xb6b00000)
       libblas.so.3 => /usr/lib/atlas/sse2/libblas.so.3 (0xb6594000)
       libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0xb64d6000)
       libreadline.so.4 => /lib/libreadline.so.4 (0xb64aa000)
       libncurses.so.5 => /lib/libncurses.so.5 (0xb646d000)
       libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb6469000)
       libhdf5-1.6.2.so.0 => /usr/lib/libhdf5-1.6.2.so.0 (0xb6368000)
       libz.so.1 => /usr/lib/libz.so.1 (0xb6357000)
       libg2c.so.0 => /usr/lib/libg2c.so.0 (0xb6339000)
       libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb6318000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb630d000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb6252000)
       libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb6125000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7feb000)
       libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb6115000)
#

and if I recall correctly I had to manually add to my /etc/ld.so.conf the following paths

/usr/lib/atlas/sse2
/usr/lib/sse2
/usr/lib/atlas



The Fedora Extras packages should take care of this automatically. I haven't tested this on hardware other than what I have, but on my system it is possible to have blas, atlas, and atlas-sse2 all installed concurrently, and the sse2 version is the default. Removing atlas-sse2 makes atlas the default. The test I usually use to verify which blas lib is being loaded is "ldd /usr/bin/octave | grep blas".

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]