LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2012, 11:48 PM   #1
penghcp
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Smile Problem about linking LAPACK and BLAS


Hello,
I has some problem about compiling lammps (http://lammps.sandia.gov/). There are always a error that ld: cannot find -lblas.
My linux version is RHEL 6.2 and the compilers are the Intel Fortran composer XE 2011, Intel C++ composer XE 2011. Also I have installed MKL. However when I search the libblas.a using the command 'find . -name "libblas.a"'at / directory, no files found.Is there some mistake when I install compilers or MKL?
Looking forward to replaying.
 
Old 04-26-2012, 01:22 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The Intel MKL libraries are named a bit differently than the generic libraries. You can verify this by looking in your MKL library directory. I've not compiled LAMMPS (I really should, though, it's close to the sort of research that I do), but most packages allow you to set an environment variable like LIBBLAS or something similar to tell the compiler what libraries it's supposed to link against. You might look at http://www.advancedclustering.com/co...-vs-intel.html -- which suggests that LAMMPS cannot link against MKL directly, but needs to link against its fast fourier transform library (FFTW). For starters, you might try to start with an un-optimizes BLAS/LAPACK just to see if oyu can get the software going. You can install libblas and libblas-devel plus lapack through RHEL's package manager (yum IIRC). Then you can at least get something going while you work on usingthe optimized libraries. You will probably need to consult a resource specific to LAMMPS for exact documentation on how to get it to work with MKL. Good luck!
 
  


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
Confused about LAPACK, ATLAS and BLAS statguy Slackware 14 01-29-2014 03:53 AM
lapack/blas linking problem dsmith Linux - Software 1 01-29-2010 07:24 AM
Lapack linking issue mfitzpat Linux - Software 6 01-27-2010 02:41 PM
problem about blas ztdep Linux - Software 1 11-10-2006 01:39 PM
some problem about LAPACK and BLAS ztdep Linux - Software 8 08-03-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 PM.

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