help-octave
[Top][All Lists]
Advanced

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

Re: octave, win32 and atlas - help


From: Andy Adler
Subject: Re: octave, win32 and atlas - help
Date: Thu, 18 Apr 2002 12:47:21 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1

Andy Adler wrote:

I am having trouble compiling octave-2.1.35 with atlas
under cygwin.
I'm pretty sure this can be done. For example,
Paul Söderlind offers atlas enhanced win32 octave
binaries on his site.

http://www.hhs.se/personal/Psoderlind/Software/Software.htm

Just to reply to my own post:

Paul Söderlind refered me to his post of
http://www.octave.org/mailing-lists/help-octave/2001/1332
which does not use the precompiled Atlas libraries, but
compiles from source. This now works for me as well.

Here is my approach:

uname -a
CYGWIN_NT-5.0 ANDYDESK0 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown
cd /usr/src
wget http://prdownloads.sf.net/math-atlas/atlas3.2.1.tar.bz2
tar xvfj atlas3.2.1.tar.bz2
cd ATLAS
make config
#### ANSWER LOTS OF QUESTIONS
make install arch=WinNT_P4SSE1

cd /usr/src/octave-2.1.35
./configure --enable-static=yes --enable-shared=no --disable-readline
make
cd libcruft/
mkdir tmp
cd tmp
ar x ../libcruft.a
for i in atlas.a lapack.a cblas.a f77blas.a ; do
  ar x ../../../ATLAS/lib/WinNT_P4SSE1/lib$i
done
cd ..
rm libcruft.a ; ar rc libcruft.a tmp/*.o
cd ..
make

# PERFORMANCE:
# atlas improves performance, but not as much as I've seen
# reported elsewhere

# NO ATLAS
echo "x=time; t=rand(1000); t*t; time-x" | src/octave-noatlas.exe -q
ans = 10.435
echo "x=time; t=rand(1000); lu(t); time-x" | src/octave-noatlas.exe -q
ans = 8.8431

# WITH ATLAS
echo "x=time; t=rand(1000); t*t; time-x" | src/octave.exe -q
ans = 2.7254
echo "x=time; t=rand(1000); lu(t); time-x" | src/octave.exe -q
ans = 3.6700

andy




-------------------------------------------------------------
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]