|
[求助]
求Linux系统安装LAPACK95工具包指导已有1人参与
由于最近需要配合gfortran使用该包(LAPACK95),下载下来后,发现在linux系统安装折腾了好久都没有对,安装其工具包里面的README提示,没有搞明白那个make.inc要具体咋修改?有没有小伙伴在linux系统成功安装,求大神指导。感激不尽!
其readme文件内容如下:
======================================Start=====================================================
!
! -- LAPACK95 interface driver routine (version 2.1) --
! UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
! August 15, 2000
!
! ---------------------- LAPACK90 directory --------------
This directory contains the following:
1) Fife subdirectories:
a) SRC (directory): Source code for all LAPACK95 routines.
b) EXAMPLES1 (directory): Simple program examples for all
LAPACK95 driver routines. These programs have been used
for the numerical examples in Part 2 of the LAPACK95
Users' Guide.
c) EXAMPLES2 (directory): More program examples; see the
README file of this directory for details.
d) TESTING (directory): Procedures for testing the entire
LAPACK95 package or individual routines.
e) TIMING (directory): Source code of the timing programs
used in the LAPACK95 Users' Guide Chapter 4.
2) make.inc file which is used by the makefiles in all the
the above mentioned directories. This make.inc must be
verify by the installer of LAPACK95 library, and adapt
to his computer system necessity. The following compiler
options and library names "OPTS0", "MODLIB", "LAPACK77",
"BLAS" and "SUF" should be redefined (LAPACK version 3
or higher should be linked with this LAPACK95 version).
3) There are several others make.inc files which were use
for testing of the LAPACK95 library on another machines.
4) lapack95_redhat.tgz, the prebuilt LAPACK95 library for
the Linux Redhat system.
The installation procedure:
1) Verify the make.inc file ("OPTS0", "MODLIB", "LAPACK77",
"BLAS" and "SUF".
2) cd SRC
3) Read the README file.
4) Run the make file with one of the selected library name.
5) cd ../TESTING
6) Read the README file.
7) Run the tests as described in README file.
8) run for a few tests from the directories EXAMPLES1 and
EXAMPLES2.
============================================END=============================================
所以我想知道最后这个安装进程应该如何操作啊?谢谢。
而在文件SRC下面的README文件内容如下
!
! -- LAPACK95 README file (version 2.1) --
! UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
! August, 2000
!
! -------------- LAPACK95/SRC directory -----------------------
This directory contains Fortran95 subroutines of the LAPACK95 library and the Fortran95 generic interface blocks of all LAPACK driver and computational routines, and the Fortran95 generic interface blocks of all LAPACK95 routines. Every LAPACK95 driver subroutine has all needed precision and arithmetic versions; single precision, double precision, complex and double complex. There are several versions of Fortran95 generic interface blocks. Every combination of the library needs different Fortran95 interface block (see below). There are here:
1) LAPACK95 library routines (auxiliary and user callable). 2) Fortran95 generic interface blocks for LAPACK driver and computational routines are:
f77_lapack_single.f90 -- for single precision library,
f77_lapack_double.f90 -- for double precision library,
f77_lapack_single_complex.f90 -- for single precision and complex library,
f77_lapack_single_double.f90 -- for single and double precisions library,
f77_lapack_double_dcomplex.f90 -- for double precision and double complex library,
f77_lapack_single_double_complex.f90 -- for single and double precision, and complex library,
f77_lapack_single_double_complex_dcomplex.f90 -- for single and double precision, complex and double complex library
3) Fortran95 generic interface blocks for LAPACK5 auxiliary routines (this module is needed for every library version): la_auxmod.f90 -- for LAPACK95 auxiliary routines.
4) Fortran95 generic interface blocks for LAPACK5 driver routines are:
f95_lapack_single.f90 -- for single precision library,
f95_lapack_double.f90 -- for double precision library,
f95_lapack_single_complex.f90 -- for single precision and complex library,
f95_lapack_single_double.f90 -- for single and double precisions library,
f95_lapack_double_dcomplex.f90 -- for double precision and double complex library,
f95_lapack_single_double_complex.f90 -- for single and double precision, and complex library,
f95_lapack_single_double_complex_dcomplex.f90 -- for single and double precision, complex and double complex library.
5) The makefile by which the LAPACK95 library can be generated. And
6) this README file.
The compiler and libraries options "OPTS0", "MODLIB", "LAPACK77","BLAS" and "SUF" in the make.inc file at the LAPACK95 directory should be verified before starting to generate the LAPACK95 library.
The makefile should be executed as follows:
make single # for single precision library,
make double # for double precision library,
make single_complex # for single precision and complex library,
make single_double # for single and double precisions library,
make double_dcomplex # for double precision and double complex library,
make single_double_complex # for single and double precision, and complex library,
make single_double_complex_dcomplex # for single and double precision, complex and double complex library.
If the control of the program fails during the makefile execution do
make clean
before generating the next time the library.
=========================================================================================
谢谢 |
|