This thread is locked.Only browsing is available.
Top Page > Browsing
Problems about CLAPACK
Date: 2006/03/23 16:41
Name: Hai-Ping Lan   <hplan@pku.edu.cn>

Dear Professor:

I am trying to compile New version of OpenMX ,
But i have some problems about Math lib CLAPACK.
Following CLAPACK install's instructuction, i could at last get some *.a files, which i thought of coz are static libs. While the OpenMX manual states that OpenMX should be linked with CLPACK dynamically.
I have checked CLAPACK installation several times, and donot even one time obtain some shared libs. so,would you please do me a faver ?


Regards,
Hai-Ping Lan




メンテ
Page: [1]

Re: Problems about CLAPACK ( No.1 )
Date: 2006/03/24 00:00
Name: T.Ozaki

Hi,

Although the installation protocol depends on your computational environment,
for your convenience, I show you a protocol for the installation on a 32 bit
LINUX machine below.

Regards,

T.Ozaki


1. get clapack.tgz from netlib.org

2. tar zxvf clapack.tgz

3. cd CLAPACK/

4. cp -f INSTALL/make.inc.LINUX ./make.inc
(You can change the compiler and compile options
in the make.inc.)

5. make f2clib

6. make blaslib

7. cd SRC

8. make (lapack_LINUX.a is made)

9. cd ../TESTING/MATGEN/

10. make

11. cd ../../

12. If you are a super user, do
cp lapack_LINUX.a /usr/local/lib/liblapack.a
cp blas_LINUX.a /usr/local/lib/libblas.a
cp F2CLIBS/libF77.a /usr/local/lib/libg2c.a
cp F2CLIBS/libI77.a /usr/local/lib/libI77.a
cp clapack.h /usr/include
cp F2CLIBS/f2c.h /usr/include
/sbin/ldconfig

Then, you may link these libraries in makefile of OpenMX,

CC = mpicc -O3 -I/usr/local/include
LIB = -L/usr/local/lib -lfftw3 -llapack_LINUX -lblas_LINUX -lg2c -static

or

CC = mpicc -Dbraswrap -O3 -I/usr/local/include
LIB = -L/usr/local/lib -lfftw3 -llapack_LINUX -lblas_LINUX -lg2c -lI77-static

12' if you are not a super user, do
mkdir ~/lib
mkdir ~/include
cp lapack_LINUX.a ~/lib/liblapack.a
cp blas_LINUX.a ~/lib/libblas.a
cp F2CLIBS/libF77.a ~/lib/libg2c.a
cp F2CLIBS/libI77.a ~/lib/libI77.a
cp clapack.h ~/include
cp F2CLIBS/f2c.h ~/include

Then, you may link these libraries in makefile of OpenMX,

CC = mpicc -O3 -I/usr/local/include -I$(HOME)/include
LIB = -L$(HOME)/lib -lfftw3 -llapack_LINUX -lblas_LINUX -lg2c -static

or

CC = mpicc -Dbraswrap -O3 -I/usr/local/include -I$(HOME)/include
LIB = -L$(HOME)/lib -lfftw3 -llapack_LINUX -lblas_LINUX -lg2c -lI77 -static


メンテ
Re: Problems about CLAPACK ( No.2 )
Date: 2006/03/24 14:39
Name: Hai-Ping Lan  <hplan@pku.edu.cn>

Thanks.
It really helps me a lot!
メンテ

Page: [1]