【调剂】北京石油化工学院2024年16个专业接受调剂
查看: 1084  |  回复: 5
【悬赏金币】回答本帖问题,作者Pinkie.li将赠送您 10 个金币

Pinkie.li

新虫 (初入文坛)

[求助] 求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.
=========================================================================================
谢谢
回复此楼
作之不止,乃成君子!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

1014511134

专家顾问 (正式写手)

【答案】应助回帖


感谢参与,应助指数 +1
jjdg: 金币+1, 感谢参与 2018-03-17 22:08:30
你编译的一些设置,比如你是用编译器,编译条件等
2楼2018-03-17 09:57:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Pinkie.li

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by 1014511134 at 2018-03-17 09:57:25
你编译的一些设置,比如你是用编译器,编译条件等

具体的操作能说一下嘛?我就是用linux下的gfortran.
谢谢
作之不止,乃成君子!
3楼2018-03-17 10:56:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

1014511134

专家顾问 (正式写手)

【答案】应助回帖


jjdg: 金币+1, 感谢参与 2018-03-17 22:08:38
如果你是用的gfortran,可以将install下的那个make.inc.gfortran复制修改为make.inc 然后make编译,结束后将.a文件拷贝到/usr/local/lib 下,不拷贝的话你链接时候直接指定路径也行。你在网上搜一下,很多安装教程的。我说的不够全面。
4楼2018-03-17 11:42:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Pinkie.li

新虫 (初入文坛)

引用回帖:
4楼: Originally posted by 1014511134 at 2018-03-17 11:42:55
如果你是用的gfortran,可以将install下的那个make.inc.gfortran复制修改为make.inc 然后make编译,结束后将.a文件拷贝到/usr/local/lib 下,不拷贝的话你链接时候直接指定路径也行。你在网上搜一下,很多安装教程的 ...

好吧,你说的意思我大致了解。我再折腾哈吧

发自小木虫IOS客户端
作之不止,乃成君子!
5楼2018-03-17 17:01:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Pinkie.li

新虫 (初入文坛)

#
#  -- LAPACK95 interface driver routine (version 2.0) --
#     UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
#     August 5, 2000
#
FC         = gfortran -ffree-form
FC1  = gfortran -ffixed-form
# -dcfuns  Enable recognition of non-standard double
#          precision  complex intrinsic functions
# -dusty   Allows the compilation and execution of "legacy"
#          software by downgrading the category  of  common
#          errors  found  in  such software from "Error" to
# -ieee=full enables all IEEE arithmetic facilities
#          including non-stop arithmetic.

OPTS0    = -O3 -u -V
MODLIB   = -I./../lapack95_modules
OPTS1    = -c $(OPTS0)
OPTS3    = $(OPTS1) $(MODLIB)
OPTL     = -o
OPTLIB   =

LAPACK_PATH = /usr/local/lib/LAPACK3/

LAPACK95 = ../lapack95.a
LAPACK77 = $(LAPACK_PATH)/liblapack.a
TMG77    = $(LAPACK_PATH)/libtmglib.a
BLAS     = $(LAPACK_PATH)/libblas.a

LIBS     = $(LAPACK95) $(TMG77) $(LAPACK77) $(BLAS)
SUF      = f90

XX = 'rm' -f $@; \
        'rm' -f $@.res; \
        $(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS); \
        $@ < $@.dat > $@.res; \
        'rm' -f $@

YY = $(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS)

.SUFFIXES: .f90 .f .o

.$(SUF).o:
        $(FC) $(OPTS3) $<

.f.o:
        $(FC1) $(OPTS3) $<
作之不止,乃成君子!
6楼2018-03-18 19:37:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Pinkie.li 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[教师之家] 发现督导在听课,需要跟TA招呼示意吗?有同学看手机、课件有疏漏算大问题吗? +6 河西夜郎 2024-04-19 6/300 2024-04-20 09:31 by xli1984
[育儿交流] 小孩7岁,上一年级,不自信,学习较差 10+7 ljaxida 2024-04-16 36/1800 2024-04-20 07:19 by ljaxida
[考研] 考研英语带学 +6 choice666 2024-04-18 6/300 2024-04-19 17:46 by charles-c
[基金申请] 估计今年青基又没戏 +9 忆念7 2024-04-18 9/450 2024-04-19 17:01 by 顺其zi然
[基金申请] 基金和生小孩 +33 Ausy 2024-04-15 35/1750 2024-04-19 16:21 by feng6531
[有机交流] 傅克酰基化,产率大于百分之一百,求解,很急 90+5 hsn991013 2024-04-15 11/550 2024-04-19 14:49 by scdxyouji
[高分子] 聚氨酯丙烯酸酯预聚体合成 +3 15692385990 2024-04-14 6/300 2024-04-18 19:43 by zhang1991
[博后之家] 博后进站年龄可以超过35岁? +8 suesong0818 2024-04-14 8/400 2024-04-18 08:38 by charles-c
[考研] 工学322,英语六级求调剂 +3 domax 2024-04-17 10/500 2024-04-17 21:25 by 东方花园小万
[考研] 322求调剂 +7 本己上岸 2024-04-16 7/350 2024-04-17 11:49 by duanxz
[考研] 土木工程281求调剂 +4 乔兮木 2024-04-13 4/200 2024-04-16 21:40 by zjl渐行渐远
[基金申请] 迟国泰通过向学生发放劳务费再回收的方式套取科学基金重点项目 +6 babu2015 2024-04-13 7/350 2024-04-16 20:32 by sundiv
[考研] 求调剂 +4 鹿萌月yy 2024-04-15 5/250 2024-04-16 16:16 by chenweiwade
[有机交流] 关于DMF +6 农药害害 2024-04-13 6/300 2024-04-16 15:57 by hwqMSE
[考博] 博士申请 +5 啦啦啦3737 2024-04-13 9/450 2024-04-16 07:07 by 1147wzzzz
[考研] 347求调剂 +4 安谷先生 2024-04-15 4/200 2024-04-15 18:27 by huao连
[有机交流] 求乙二醇检测方法 13+3 YaShang 2024-04-14 4/200 2024-04-15 15:16 by Byltest
[考研] 专硕调剂招生 +3 电致发光 2024-04-15 4/200 2024-04-15 07:34 by ashorewmj
[考研] 338求调剂 +3 18280338551 2024-04-14 5/250 2024-04-14 10:03 by tcni
[考研] 086000生医没考数学304分,一志愿西农求调剂 +3 王有田有学上 2024-04-13 5/250 2024-04-13 16:18 by coco1981
信息提示
请填处理意见