473,657 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing Numeric with ATLAS and LAPACK

Hello,

Could someone please provide instructions for install Numeric
with ATLAS and LAPACK?

I've actually done this correctly, I think. But I don't see any
difference in the speed.

I'm calculating eigenvalues for a 3600 X 3600 covariance matrix.

Calculating the eigenvalues for this matrix requires a mere 7 min
in Matlab 6.5...which uses ATLAS and LAPACK.
Thanks,
Daran

Jul 18 '05 #1
9 3067
> Could someone please provide instructions for install Numeric
with ATLAS and LAPACK?


No idea - but telling us what os and versions of python and numeric you use
might make others comment on that.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
drife wrote:
Hello,

Could someone please provide instructions for install Numeric
with ATLAS and LAPACK?

I've actually done this correctly, I think. But I don't see any
difference in the speed.

I'm calculating eigenvalues for a 3600 X 3600 covariance matrix.

Calculating the eigenvalues for this matrix requires a mere 7 min
in Matlab 6.5...which uses ATLAS and LAPACK.
Thanks,
Daran


What functions from ATLAS and LAPACK are you using?

Carl

Jul 18 '05 #3
>>>>> "drife" == drife <da*******@yaho o.com> writes:

drife> Hello, Could someone please provide instructions for
drife> install Numeric with ATLAS and LAPACK?

Locate libcblas.a and add that dir to the setup.py library_dirs_li st.
Eg on my system, /usr/local/lib/ATLAS/lib/Linux_P4SSE2_2/libcblas.a

setup.py:

library_dirs_li st = ['/usr/local/lib/ATLAS/lib/Linux_P4SSE2_2']

Do the same for cblas.h and add it to the include_dirs var in
setup.py, on my system it is /usr/local/lib/ATLAS/include/cblas.h, so
in setup.py

include_dirs = ['/usr/local/lib/ATLAS/include/', '/usr/include/atlas']

Then python setup.py install *should* work.

JDH
Jul 18 '05 #4
Thanks John. Those are the steps I followed, and to no avail.

Interestingly, I downloaded and installed SciPy, and ran the
same eigenvector problem. SciPy greatly speeds up the
calculation...w as 1.5 hours using Numeric, now only 15 min
with SciPy.

Unfortunately, SciPy only solves ordinary and generalized
eigenvalue problems of a square matrix. They do not test
to see if the matrix is symmetric, then call the appropriate
routine from LAPACK.
Daran

Jul 18 '05 #5
>>>>> "drife" == drife <da*******@yaho o.com> writes:

drife> Thanks John. Those are the steps I followed, and to no
drife> avail.

Make sure you get a clean build by rm -rf ing the build dir before you
build again. Then capture the output of your build to a file. When
you say "to no avail" what do you mean -- that the calculation was
slower. If you still have troubles, post again to the
numpy-discussion list listing what you did and the output of the build
process.

Good luck!
JDH
Jul 18 '05 #6
drife wrote:
Thanks John. Those are the steps I followed, and to no avail.

Interestingly, I downloaded and installed SciPy, and ran the
same eigenvector problem. SciPy greatly speeds up the
calculation...w as 1.5 hours using Numeric, now only 15 min
with SciPy.

Unfortunately, SciPy only solves ordinary and generalized
eigenvalue problems of a square matrix. They do not test
to see if the matrix is symmetric, then call the appropriate
routine from LAPACK.


Note that scipy exposes most of lapack, so you could make the call you need
directly:

In [3]: scipy.linalg.la pack.get_lapack _funcs?
Type: function
Base Class: <type 'function'>
String Form: <function get_lapack_func s at 0x40402c6c>
Namespace: Interactive
File: /usr/lib/python2.3/site-packages/scipy/linalg/lapack.py
Definition: scipy.linalg.la pack.get_lapack _funcs(names, arrays=(), debug=0,
force_clapack=1 )
Docstring:
Return available LAPACK function objects with names.
arrays are used to determine the optimal prefix of
LAPACK routines.
If force_clapack is True then available Atlas routine
is returned for column major storaged arrays with
rowmajor argument set to False.

Cheers,

f

Jul 18 '05 #7
Hi John,

When I built Numeric with ATLAS and LAPACK, the eigenvalue
calculation took the same amount of time.

Per your suggestion, I will capture the output of the build and post
it to the Numpy discussion group.
Thanks,
Daran

Jul 18 '05 #8
Could you clarify this please?

Let's say that I want to make a call to the LAPACK
routine sspevd, and pass it a matrix, and get the result. How do I
accomplish this?
Thanks,
Daran

Jul 18 '05 #9
drife wrote:
Could you clarify this please?

Let's say that I want to make a call to the LAPACK
routine sspevd, and pass it a matrix, and get the result. How do I
accomplish this?


I just had a quick look, and it seems that sspevd is NOT one of the already
wrapped LAPACK functions. Try

dir(scipy.linal g.flapack)

and

dir(scipy.linal g.clapack)

to see what's been already wrapped. From what I understand, wrapping more of
lapack is rather easy, it's just that nobody has committed the time to 100%
coverage.

But this question is much better posed on the scipy list, where the people who
wrote the lapack wrapping code can give you a better answer (I didn't).

Cheers,

f

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2499
by: Chris Weisiger | last post by:
I'm trying to install numeric on my MacOS X box using Darwin, with the eventual goal of satisfying all of PyGame's dependencies so I can finally start working on my semester project. I would be using MacPython, except that I can't seem to get its Package Manager to work. Anyway, when I try to install numeric, I get the following error: chriswei% sudo ./setup.py install Password: running install running build
4
5495
by: Rex_chaos | last post by:
Hi all, I am looking for a high-performance container(matrix and vector) for numerical computation. Someone recommended the boost::multi_array. After having looked at the documentation, I know several more candidates from it. They are : MTL, blitz++, boost::ublas. I have no idea which one is the best. The documentation of these packages are trying to convince me that they are free from drawback :)) I need someone to tell me the experience...
1
3240
by: pervinder | last post by:
Hi, I am building a c++ executable which uses fortan math libs. blas, lapack etc. But when i build this on HP-UX, i get below linker errors while it build without anyissues on Sun and Linux platforms. dgetrs_ (first referenced in .../../output/HPUX_32/lib/acc352/dbg/libmtx.a(denseMatrix.o)) (code) dsytrs_ (first referenced in
0
620
by: Darren L. Weber | last post by:
The following is a first attempt to almost create a shell script for installation of ATLAS and LAPACK. It does not work right now and it is specific to a particular platform. It is posted here to archive it and throw into the public domain, maybe others will find it useful. It is at least a documentation of some relevant notes on the procedure. Corrections and updates would be really appreciated. Alternatives to automate this process...
3
3102
by: eri | last post by:
Hi all I need to convert a Fortran program I wrote some months ago. I need BLAS / LAPACK routines and it seems to be very difficult to make it work under Win + MingW32 + DevCPP; so I wonder if there is someone who has managed to install them and has written a sort of HOWTO. I've already downloaded the .zip packages from netlib. What I couldn't find is how to fit them to my needs: I mean, which libs are needed, which header, how to link...
7
2144
by: taoyangsjtu | last post by:
Dear friends, Now, I have just installed the system with full fedora core 4. I had to use lapack, but I don't know how to install and use it. Can anybody tell me the installation process in detail. Thank you! I have downloaded the lapack.tgz and the fortran compiler (g77) is on my computer. Thank you! Tao Yang
1
3449
by: Ken Dere | last post by:
I am trying to install numpy-0.9.8 prior to installing scipy (0.4.9) on a machine running Suse 10.0 with Python 2.4 I am able to get numpy installed to the point when I import it I can do the following: numpy.show_config() atlas_threads_info: NOT AVAILABLE
2
2993
by: aberte | last post by:
Hi, i'm learning how to use lapack library (in particular, Intel MKL). I wish to know how I have to format the my inputs. I'm calling lapack functions from c++ (zhetri, zhemm, zgemm, zhseqr, ztrevc). I declare the 3x3 matrix (in c++) in this way: complex MyMatrix; I intend MyMatrix, MyMatrix, MyMatrix
1
1607
by: 1960_j | last post by:
I have tried to install numpy and scipy on python 5.2. Using gcc 2.95.3, lapack 3.1.1 and ATLAS 3.6.0. When installin numpy it seems to work but when I try to run test get error no test for numpy. When I try to Install scipy only get error. Any ideas on how to install would be appreciated. Thanks
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.