help-octave
[Top][All Lists]
Advanced

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

Compiling from Source on Mint and adding ATLAS


From: lascott
Subject: Compiling from Source on Mint and adding ATLAS
Date: Fri, 28 Dec 2012 05:22:45 -0800 (PST)

I was able to follow along and have Octave running from source on Mint 13
(Maya).
The default install is 3.2, and I went to GNU Octave, version 3.6.3
(I download and read the README to figure out the dependencies.)
Got greedy and wanted to add ATLAS.  Thankfully there are instructions:


http://mhelm8191.blogspot.co.uk/2010/01/compiling-atlas-for-gnu-octave-on.html

liblapack.a was created following the above steps.
Created in:
/media/dtb/home/las/code/lapack-3.4.2/
Copied to:
/usr/local/lib
My system is x64, I also have a lib32 for those empty at the moment.

Following the recipe in compiling atlas for octave:
Neruda tmp # gcc -fPIC -lgfortran -shared *.o -Wl,-soname,liblapack.so.3 -o
liblapack.so.3

*/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status*

Path issues perhaps?  Thank you good soul who reads this over the holidays.
The lapack source is on a drive partition, away from home:

Neruda tmp # pwd
/media/dtb/home/las/code/lapack-3.4.2/tmp   

Neruda tmp # which gcc
/usr/bin/gcc
Neruda tmp # which gfortran
/usr/bin/gfortran
Neruda tmp # gfortran --version
GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.


Neruda tmp # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.7.2-11precise2' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-11precise2) 

address@hidden ~ $ uname --all
Linux Neruda 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux

Octave runs:
octave:16> t0=clock(); benchmark_index(4e6,100); t1=clock();
elapset=etime(t1,t0)
warning: fopen: file found in load path
Running benchmark: benchmark_index
Test speed of array indexing.

array size (n) = 4e+06
number of repeats (rep) = 100
time for a(i:j): 0.000568151
time for a(i:k:j): 0.475982
time for a(idx): 0.856663
time for a(:,i:j): 0.000787973
time for a(i:j,:): 0.670483
time for a(:,idx): 0.611888
time for a(idx,:): 0.706066
time for a(:,:,i:j,k): 0.00103116
time for a(:,:,k,i:j): 0.230988
time for a(i,j,k,:): 0.250625
time for a(ones(1, k), :), a row vector: 0.417457
time for a(:, ones(1, k)), a column vector: 0.421526
elapset =  5.0654



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Compiling-from-Source-on-Mint-and-adding-ATLAS-tp4648439.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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