24小时热门版块排行榜    

查看: 2841  |  回复: 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的回帖
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见