24小时热门版块排行榜    

查看: 3378  |  回复: 37
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

maomao1210

金虫 (正式写手)

[交流] 【讨论】编译器,数学库安装。 已有1人参与

经常遇到编译器的安装,以及各种数学库的安装,还有一些常用软件的安装,最基本的能力。呵呵
如果能有个高手把这个总结一下的话,岂不是很好?让大家都来学习一下。
编译器:pgi, ifort,等等
数学库: blas, lapack, atlas, mkl 等等
常用软件就很多了,分子轨道理论方面的,密度泛函方面的,呵呵
希望能有高手给总结一下。让我们都来学习操作操作。
可惜我是一个linux盲,所以只能在这里呼吁了。呵呵。
为了此个项目,我决定拿出我全部的金币做为资助。
pgi 的安装过程,100 金币
ifort 的安装过程,100金币
mpich 的安装过程,100金币
blas+lapack的安装过程,160金币
atlas的安装过程,100金币
mkl的安装过程,100金币
共660金币。
呵呵。总结后,大家都可以来学习一下。
金币就这么多了,所以常用软件的安装就没有金币贡献了,呵呵,等赚了钱再继续来求贤,呵呵。

[ Last edited by maomao1210 on 2010-1-28 at 10:45 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zyz1981

至尊木虫 (文坛精英)

医学物理

Ubuntu(Unix)下Lapack的安装介绍(ifort)

* Lapack ( http://www.netlib.org/lapack/lapack.tgz )
download and unzip the file

1. Modify the make.inc file

make.inc file which is used by the makefiles in all directories.
This make.inc must be adapt to your computer system necessity.
Following is an example,

FORTRAN = ifort
OPTS = -O2
DRVOPTS = $(OPTS)
NOOPT = -O0
LOADER = ifort
LOADOPTS =


change the lines:

BLASLIB = ../../blas$(PLAT).a
LAPACKLIB = lapack$(PLAT).a
TMGLIB = tmglib$(PLAT).a
EIGSRCLIB = eigsrc$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a

to --->
BLASLIB = ../../libblas$(PLAT).a
LAPACKLIB = liblapack$(PLAT).a
TMGLIB = libtmglib$(PLAT).a
EIGSRCLIB = libeigsrc$(PLAT).a
LINSRCLIB = liblinsrc$(PLAT).a

2. For the Makefile file
# The library can be set up to include routines for any combination
# of the four precisions. To create or add to the library, enter make
# followed by one or more of the precisions desired. Some examples:
# make single
# make single complex
# make single double complex complex16
# Alternatively, the command
# make
# without any arguments creates a library of all four precisions.
# The library is called
# lapack.a
# and is created at the next higher directory level.
#
# To remove the object files after the library is created, enter
# make clean

3. run in the terminal:
make blaslib
make all
cp *.a ~/lib


4. extract the file lapack95.tgz, and enter to the folder LAPACK95
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.

Change the settings in make.inc as following:
FC = ifort
FC1 = ifort



LAPACK_PATH = $(HOME)/lib
LAPACK95 = ../liblapack95.a
LAPACK77 = $(LAPACK_PATH)/liblapack.a
TMG77 = $(LAPACK_PATH)/libtmglib.a
BLAS = $(LAPACK_PATH)/libblas.a

then run in the terminal:
cd SRC
make double_dcomplex
cd ..
cp lapack95.a ~/lib/liblapack95.a
cp ./lapack95_modules/* ~/include

转自:http://www.39g.com/html/kaifa/281/2009/12/359229517805.htm
32楼2010-01-29 14:58:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 38 个回答

亲核取代

铁杆木虫 (知名作家)

-无关讨论,删除-

[ Last edited by nono2009 on 2010-1-29 at 10:11 ]
2楼2010-01-28 11:48:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

maomao1210

金虫 (正式写手)

感谢nono2009,余泽成领导的支持。呵呵。非常感谢。
3楼2010-01-28 13:41:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mao_yijian

铁杆木虫 (著名写手)

-无关讨论,删除-

[ Last edited by nono2009 on 2010-1-29 at 10:12 ]
坚持“四项基本原则”
4楼2010-01-28 13:46:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 国社科又开始会评了,不知道这次命运如何 +9 雨打竹帘 2026-08-30 13/650 2026-09-03 08:16 by kudofaye
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +8 gdd2018 2026-08-28 13/650 2026-09-03 06:22 by 羽毛枫f
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ero8OE6tv9cu 2026-09-02 4/200 2026-09-03 03:14 by rM1TE0WVDIIY
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +14 Kittylucky 2026-08-27 15/750 2026-09-02 19:35 by liumei0601
[基金申请] 科研人应该花精力去思考如何解决问题,而不是去凝练问题 +7 瞬息宇宙 2026-09-01 14/700 2026-09-02 17:33 by ma0526
[基金申请] 要骂人了,新模版改版就是要淡化问题凝练这种虚的东西,结果有个评委还在说凝练得不够 +9 瞬息宇宙 2026-08-31 17/850 2026-09-02 14:04 by anjeeshine
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 10/500 2026-09-02 11:35 by 大不刘6
[基金申请] 学科评审组评审是指会评吗? +5 瞬息宇宙 2026-08-31 5/250 2026-09-02 10:13 by 雨冰共舞
[基金申请] 面上函评意见出来了,像什么等级? 20+4 Tsingking1 2026-08-27 17/850 2026-09-01 19:51 by 超级无敌华子
[论文投稿] 小白求助 投论文要求的highlights应该如何写 5+3 l1963982152 2026-08-29 4/200 2026-09-01 09:04 by 北京莱茵编辑
[基金申请] 基金未中,这种答复是模板吗? +6 zhaosm1982 2026-08-27 7/350 2026-08-31 21:18 by qdxxmc
[基金申请] 面上意见出来了 +12 黄鸟于飞Chao 2026-08-29 23/1150 2026-08-31 18:57 by 黄鸟于飞Chao
[基金申请] 能否申诉? +7 echo8914667 2026-08-30 8/400 2026-08-31 17:00 by yihongxu
[基金申请] 中青基了要发朋友圈吗? +7 349506619 2026-08-28 7/350 2026-08-31 13:39 by 冼亮淀粉酶
[基金申请] 29号明天会评吗 +4 笨笨唐 2026-08-28 4/200 2026-08-31 09:30 by huixian257
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 2026年叶企孙基金 +4 bud_bud 2026-08-27 7/350 2026-08-29 07:23 by foolishmani
信息提示
请填处理意见