Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-24-2009, 03:50 PM
|
#1
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Rep:
|
Confused about LAPACK, ATLAS and BLAS
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?
Thanks.
|
|
|
10-24-2009, 04:18 PM
|
#2
|
Member
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538
Rep:
|
Hi,
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.
Last edited by easuter; 10-24-2009 at 04:20 PM.
|
|
|
10-24-2009, 04:45 PM
|
#3
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Original Poster
Rep:
|
Quote:
Originally Posted by easuter
Also, what software are you trying to install? Perhaps we can help.
|
The software is called JAGS (Just Another Gibbs Sampler).
http://www-fis.iarc.fr/~martyn/software/jags/
So, can I use the SlackBuilds LAPACK with an ATLAS build, or should I go the route of building all from source?
|
|
|
10-24-2009, 05:39 PM
|
#4
|
Member
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538
Rep:
|
For now, you can just install BLAS and LAPACK from SlackBuilds, and if it turns out that you need extra performance, then give ATLAS a try.
|
|
|
10-25-2009, 12:33 AM
|
#5
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
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 10:05 AM.
Reason: s/blas/lapack/
|
|
|
10-25-2009, 07:52 AM
|
#6
|
Member
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224
Rep:
|
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.
|
|
|
10-25-2009, 08:09 AM
|
#7
|
Member
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538
Rep:
|
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.
|
|
|
10-25-2009, 08:26 AM
|
#8
|
Member
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538
Rep:
|
Quote:
Originally Posted by plasmonics
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.
|
|
|
10-25-2009, 10:48 AM
|
#9
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Original Poster
Rep:
|
Quote:
Originally Posted by easuter
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.
Thanks.
|
|
|
10-26-2009, 09:11 AM
|
#10
|
Member
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538
Rep:
|
Quote:
Originally Posted by statguy
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
|
|
|
01-28-2014, 04:08 AM
|
#11
|
Member
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84
Rep:
|
Quote:
Originally Posted by statguy
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?
|
|
|
01-28-2014, 04:35 AM
|
#13
|
Member
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84
Rep:
|
Quote:
Originally Posted by knudfl
Please do not use (old) LQ threads for off topic questions ..
|
I hoped for an answer (possibly) from statguy.
I know about the slackBuild from slacky.eu that appears in google-searches, but it is not for the MCMC-sampler, but rather for some utility to browse SAMBA-shares.
Sorry if I have broken some rules -- still new here...
|
|
|
01-29-2014, 03:53 AM
|
#15
|
Member
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84
Rep:
|
Thanks, that sounds promising.
|
|
|
All times are GMT -5. The time now is 04:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|