- 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
|