SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A piece of software I want to compile requires LAPACK. Fine, I go to SlackBuilds.org and under the lapack page is the following:
Quote:
Install an optimized BLAS instead of the reference BLAS from Netlib if you
wish to improve LAPACK's performance. Otherwise, use the BLAS build script
provided at Slackbuilds.org. You may also build your own tuned lapack library
with ATLAS.
The BLAS library on SlackBuilds is not optimized, so I checked out ATLAS. In its install directions, I find the following:
Quote:
ATLAS natively provides only a relative handful of the routines which comprise LAPACK. However, ATLAS is designed so that its routines can easily be added to Netlib's standard LAPACK in order to get a full LAPACK library.
It then gives some instructions on compiling ATLAS with LAPACK installed and later it tells how to add LAPACK when ATLAS is already installed.
The quote from SlackBuilds suggests that ATLAS can build my tuned LAPACK, while ATLAS says it on does a handful of routines.
So, can anyone advise me on how best to proceed with installing these libraries?
Yes that package description should explicitly say that ATLAS only provides a subset of LAPACK (although the ATLAS documentation does explain how to build a full LAPACK into the package).
LAPACK uses the BLAS to perform vector-vector, matrix-vector and matrix-matrix operations, so swapping out the reference BLAS on slackbuilds.org for one tuned to your processor (Intel MKL or AMD ACML) should allow some of LAPACK's operations to run faster.
I didn't package ATLAS because it is fairly complex to build, though making a SlackBuild for it is on my to-do list.
The reference BLAS and LAPACK were a quick-and-dirty way to get SciPy installed on my computer, and for most small projects they work just fine.
When you need to process large amounts of data or are doing tons of matrix-matrix operations then having a fast BLAS and LAPACK are really necessary.
Also, what software are you trying to install? Perhaps we can help.
For what it's worth (especially coming from someone who isn't really familiar with the software involved), I'd like to see an option within the lapack build script which allows you to install the atlas portions with it. In other words, if the user gets the atlas stuff separately and tells the build script that it's present, then the atlas stuff will be part of the resulting package.
Perhaps that's a horrible idea for whatever reason, and if so, LART is accepted. :-)
Last edited by rworkman; 10-26-2009 at 09:05 AM.
Reason: s/blas/lapack/
I have experience with both BLAS and LAPACK and have used them along with ARPACK for eigensystem analysis. I have always used the free ones from http://www.netlib.org. The slackbuilds also compile and work fine.
However, if you want machine optimized versions, you need to purchase them from a vendor. Intel sells MKL. There are vendors that sell ACML.
I used MKL only briefly. If I remember correctly, I had to also use it in conjunction with the Intel compiler. I have not used ACML.
BTW statguy, please post back and tell us if you managed to get JAGS working.
If there are problems building software using the BLAS and LAPACK from SlackBuilds I'd like to know so I can fix them.
I have experience with both BLAS and LAPACK and have used them along with ARPACK for eigensystem analysis. I have always used the free ones from http://www.netlib.org. The slackbuilds also compile and work fine.
However, if you want machine optimized versions, you need to purchase them from a vendor. Intel sells MKL. There are vendors that sell ACML.
I used MKL only briefly. If I remember correctly, I had to also use it in conjunction with the Intel compiler. I have not used ACML.
I also had MKL installed for a short period, but never had to pay for it. I think there is a license that allows you to use MKL for free as long as it is for personal or academic use, but even then it is very restricted
Goto BLAS also has a fairly strict license and isn't really free software per se, but at least they give you the source code and you can do almost anything with it as long as it isn't for commercial use.
BTW statguy, please post back and tell us if you managed to get JAGS working.
If there are problems building software using the BLAS and LAPACK from SlackBuilds I'd like to know so I can fix them.
Yes, JAGS successfully compiled with the BLAS and LAPACK SlackBuilds. I ran a test suite, which took awhile, but completed without error and in agreement to the benchmark values.
Yes, JAGS successfully compiled with the BLAS and LAPACK SlackBuilds. I ran a test suite, which took awhile, but completed without error and in agreement to the benchmark values.
Thanks.
Thanks for the feedback.
I have a lot on my plate right now, but once I have some spare time I will try to make an ATLAS SlackBuild and post back here with details
Yes, JAGS successfully compiled with the BLAS and LAPACK SlackBuilds. I ran a test suite, which took awhile, but completed without error and in agreement to the benchmark values.
I also need to build JAGS, but wasn't able to find a slackBuild for it so far. Could you help?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.