24小时热门版块排行榜    

Znn3bq.jpeg
北京石油化工学院2026年研究生招生接收调剂公告
查看: 767  |  回复: 1
当前主题已经存档。

顺水

金虫 (小有名气)


[资源] 【转帖】成功编译scalapack!

ScaLAPACK Installation
NOTE: These intructions were updated in June 2006. They may not be kept up-to-date. Refer to the ScaLAPACK website for more recent and more complete instructions.
ScaLAPACK must be available on your system before Amesos_Scalapack or Amesos_Mumpscan be used. ScaLAPACK is provided in many high performance libraries, including the Cray Scientific Library (-lsci), Silicon Graphic's (-lsdsm), Hewlett Packard's MLIB, Intel's MKL. Some IBM scientific libraries also support ScaLAPACK. Many high performance computer installations include ScaLAPACK. Hence, it is worth checking to see if ScaLAPACK is already installed on your computer.
Even if ScaLAPACK is available on your system, you may need to build it from the original sources if you are using a different fortran compiler.
To install ScaLAPACK on your system you will need the BLAS and the BLACS. The BLAS are almost certainly installed on your system, but the BLACS are often not installed unless SacaLAPACK is.
To install the BLACS on your system:
•        Obtain the distribution from the BLACS website You will need both mpiblacs.tgz and mpiblacs-patch03.tgz. Getting blacstester.tgz is also wise.
•        Untar these three into the same directory.
•        Edit Bmake.inc, starting from one of the templates in BMAKES/Bmake.inc.
o        Set BTOPdir to point to the directory that the BLACS are in (generally ends in BLACS)
o        Set F77, CC, MPIINCdir and MPILIB.
        MPIINCdir should be set to a directory including mpif.h.
        MPILIB can be left blank if F77=mpif77 and CC=mpicc
o        Set PLAT to a character string representing your platform (optional).
o        Follow the directions in BLACS/INSTALL/README. The BLACS/INSTALL directory contains several small routines which will help you set Bmake.inc variables INTFACE and TRANSCOMM and may warn you of more serious problems with your mpi implementation. Note: the executables are placed in the EXE subdirectory.
o        Type "make mpi" in the BLACS directory to build the BLACS.
o        Type "cd TESTING; make" to build the BLACS tester (note, the blacs tester takes close to a minute to compile)
o        Run the blacs tester on 4 processes. On many machines, this can be done with: "cd EXE; mpirun -np 4 xFbtest_MPI-...-0" or "cd EXE; mpirun -np 4 xCbtest_MPI-...-0"
o        Don't give up if the BLACS tester fails. It is important that the testers link, but sometimes blacs installations that cause the BLACS tester to fail still work. On one system, the BLACS tests all gave this error message: "MPI Error, rank:0, function:MPI_TYPE_INDEXED, Invalid count argument" but the ScaLAPACK and Amesos_ScaLAPACK installation tests both passed.
To install ScaLAPACK on your system, install the BLACS first(see above), then:
•        Obtain the latest distribution from the SCALAPACK website. As of May 2006, the latest distribution is scalapack-1.7.3.tgz, but you should check for patches and later distributions.
•        Untar the ScaLAPACK code: "tar xzf scalapack-1.7.3.tgz". Typically this is done in the same directory that you untarred the BLACS code (it will create a scalapack-1.7.3 directory).
•        Edit SLmake.inc.
o        home to the directory that the ScaLAPACK code resides in. For version 1.7.3, this will end in scalapack-1.7.3. For earlier versions, it tyically ends in SCALAPACK.
o        Set PLAT to the same staing that you set it to for the BLACS in the Bmake.inc file (optional).
o        Set BLACSdir to the directory that the BLACS library files are in (typically ends in BLACS/LIB)
o        Set F77, CC. Typically (almost always) these are the same compilers used to compile the BLACS.
o        Set CDEFS to the flags you wish to pass to the C compiler (typically this includes the flags you set in INTFACE in Bmake.inc).
o        Set SMPLIB to point to your mpi library (typically -lmpi). May be left blank if you use F77=mpif77 and CC=mpicc
o        Set BLASLIB to point to the BLAS library.
o        Set BLACSFINIT, BLACSCINIT and BLACSLIB. If you set BLACSdir and PLAT right, you may not have to change these.
•        Type: "make" in the same directory that SLmake.inc is in to build the ScaLAPACK library. Takes several minutes.
•        Check to see that libscalapacl.a was built in this directory.
•        Type: "cd TESTING/LIN; make" to build the linear solver testers. Takes several minutes.
•        Type: "cd .." to change back to the TESTING directory. Then run xdlu < LU.dat on four processes. On many computers this can be done with "mpirun -np 4 xdlu
•        The results should end with:
Finished    240 tests, with the following results:
  240 tests completed and passed residual checks.
    0 tests completed and failed residual checks.
    0 tests skipped because of illegal input values.


END OF TESTS.

原帖:http://qiqi7030.spaces.live.com/ ... 6F4EB0B66!237.entry
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

顺水

金虫 (小有名气)


2楼2009-08-26 21:34:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 顺水 的主题更新
☆ 无星级 ★ 一星级 ★★★ 三星级 ★★★★★ 五星级
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂 +15 熊二想上岸 2026-04-06 15/750 2026-04-08 04:53 by 无际的草原
[考研] 求调剂 +6 吃口冰激凌 2026-04-07 6/300 2026-04-08 01:41 by Linzejun
[考研] 327求调剂 +6 Xxjc1107. 2026-04-06 6/300 2026-04-08 00:27 by JourneyLucky
[考研] 求调剂 +26 111623 2026-04-04 29/1450 2026-04-08 00:10 by JourneyLucky
[考研] 266调剂 +5 daya sun 2026-04-07 6/300 2026-04-08 00:08 by daya sun
[考研] 304求调剂 +9 素年祭语 2026-04-06 12/600 2026-04-08 00:04 by JourneyLucky
[考研] 331求调剂 +5 张元一 2026-04-07 6/300 2026-04-07 22:13 by hemengdong
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +9 哇呼哼呼哼 2026-04-02 10/500 2026-04-06 19:47 by jean5056
[考研] 307求调剂 +3 所念及所望 2026-04-06 3/150 2026-04-06 17:30 by 土木硕士招生
[考研] 调剂 +3 李广火 2026-04-05 3/150 2026-04-05 18:57 by 蓝云思雨
[考研] 288求调剂 一志愿哈工大 材料与化工 +13 洛神哥哥 2026-04-03 13/650 2026-04-05 17:27 by zzx2138
[考研] 290求调剂 +7 luoziheng 2026-04-04 7/350 2026-04-04 23:17 by lqwchd
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +11 哇呼哼呼哼 2026-04-01 12/600 2026-04-04 23:17 by 永字号
[考研] 能动调剂326专硕 +4 wan112233 2026-04-04 4/200 2026-04-04 22:47 by yu221
[考研] 283分求调剂 +7 小聂爱学习 2026-04-03 7/350 2026-04-04 21:51 by hemengdong
[考研] 341求调剂 +3 洛多罗 2026-04-02 4/200 2026-04-04 21:36 by 智能智慧
[考研] 怎么删帖子啊 +3 缝曦1000 2026-04-04 3/150 2026-04-04 14:20 by 土木硕士招生
[考研] 387求调剂 +4 爱吃片豆土 2026-04-03 5/250 2026-04-04 08:10 by 岸上的一条鱼
[考研] 一志愿重庆大学085404,总分314分,求调剂 +4 zf83hn 2026-04-03 4/200 2026-04-03 21:25 by 啵啵啵0119
[考研] 生物学硕341求调剂 +4 你笑起来像云朵 2026-04-03 4/200 2026-04-03 10:32 by macy2011
信息提示
请填处理意见