LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2014, 02:34 PM   #1
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Rep: Reputation: 25
How do you get ATLAS to work?


I originally installed BLAS and LAPACK and then libraries that depend on them ( GSL, Armadillo). Later I installed ATLAS but as far as I can see, I'm not getting any improvement. I removed CBLAS since ATLAS seems to replace that lib and I rebuilt LAPACK, GSL and Armadillo in hopes that would connect them up. But I can't see anything in the dependencies that suggests they are actually invoking ATLAS. Times runs of the 'eigen' function are unchanged. Maybe I don't understand what it's about but I expected some performance improvement.
 
Old 09-30-2014, 06:10 PM   #2
heehau
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
As I understand it, ATLAS builds its own versions of LAPACK and CBLAS. After you build it, check if you have the CBLAS and LAPACK libraries in the build.

The Trusty package for libatlas-base has the following files:
Quote:
/usr/lib/atlas-base/libcblas.so.3.0
/usr/lib/atlas-base/atlas/liblapack.so.3.0
/usr/lib/atlas-base/atlas/libblas.so.3.0
/usr/lib/atlas-base/libf77blas.so.3.0
/usr/lib/atlas-base/libatlas.so.3.0
/usr/lib/atlas-base/liblapack_atlas.so.3.0
/usr/lib/liblapack_atlas.so.3
/usr/lib/liblapack_atlas.so.3gf
/usr/lib/libcblas.so.3
/usr/lib/libcblas.so.3gf
/usr/lib/libatlas.so.3
/usr/lib/libatlas.so.3gf
/usr/lib/atlas-base/liblapack_atlas.so.3
/usr/lib/atlas-base/libcblas.so.3
/usr/lib/atlas-base/libatlas.so.3
/usr/lib/atlas-base/atlas/liblapack.so.3
/usr/lib/atlas-base/atlas/libblas.so.3
/usr/lib/atlas-base/libf77blas.so.3
/usr/lib/libf77blas.so.3
/usr/lib/libf77blas.so.3gf
(Directories and documentation omitted.)

If you have separate LAPACK and/or CBLAS libraries in the ATLAS build, you should link to those and not to the ones you built directly from LAPACK.
 
Old 10-02-2014, 03:26 PM   #3
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Thanks, I'll look into that, These is no such dir as /usr/lib/atlas-base so I will have to hunt for it. And WELCOME to LQ. I see you're new here and it's good to see new people.
...
Okay, I've checked. The only libs I can find are /usr/lib64/libatlas.a and /usr/lib64/libatlas.so

Last edited by rdx; 10-02-2014 at 03:37 PM.
 
Old 10-02-2014, 05:43 PM   #4
heehau
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Why, thank you, good sir! Thanks for the warm welcome. New to the forum, but Linux (ab)user since 1994.

Back to your issue: You mention that your builds of Armadillo, GSL, and LAPACK show no dependency on libatlas.so. I assume you figured that out by running ldd on all applications and libraries involved.

It appears that you have to manually change the build files for each of the three above to use atlas. Did you just rebuild the three after you uninstalled CBLAS? Or did you modify the make files to include the new libraries? Could you possibly include the output of the Armadillo cmake?

Finally: did you check the time stamps on the binaries to ensure that they are newly built and not simply left over from the previous build?
 
1 members found this post helpful.
Old 10-08-2014, 06:43 PM   #5
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Are you asking for "CMakeCache.txt"? If so, I can copy it over. I have been doing more reading and I have added a couple more libs, OpenBLAS (to get parallel processing) and lapack-atlas (to explicitly include ATLAS).

I am also wondering why GSL is so slow. I have a test program which computes the SVD of a 3000x3000 matrix. When I run it with GSL it takes over 19 mins to run. When I run the same program with Armadillo, it runs in 45 sec. It is nearly as fast with Octave so GSL is the outlier.

I've been messing with these programs and at least one thing is working: OpenBLAS is successfully integrated. Now my test program is much faster. On C++ (armadillo lib) it runs in 12.5 sec( was 45 sec), with GSL it's down to 16 min (orig 22 min). Python (scipy lib) runs it in 23 sec. Even Octave is doing better, 34 sec (was 58 sec), although it is not using parallel processes. I'm pretty happy with that.

Last edited by rdx; 10-09-2014 at 04:54 AM. Reason: adding results of testing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install ATLAS from source...? mahdi109 Linux - Software 3 10-30-2011 11:46 AM
What are they talking about ATLAS? abefroman Linux - Security 1 04-21-2008 07:35 PM
LXer: Atlas gets its RTW LXer Syndicated Linux News 0 01-24-2007 07:21 PM
Atlas for linux? vincebs Linux - Software 2 12-13-2003 03:21 PM
Road Atlas for Linux n1wil Linux - Software 1 08-08-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration