LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem about linking LAPACK and BLAS (https://www.linuxquestions.org/questions/linux-newbie-8/problem-about-linking-lapack-and-blas-941764/)

penghcp 04-25-2012 10:48 PM

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.

btmiller 04-26-2012 12:22 AM

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!


All times are GMT -5. The time now is 09:43 PM.