jslove1997的博客

一个小白

bdf编译步骤

介绍:
编译bdf需要使用openmpi1.6和ga5.5提供对应的库,同时需要ifort2013以及gcc,cmake等。

准备………………………………………………………………

1.配置mpi 编译环境(openmpi )
./configure –prefix=$openmpi_home CC=gcc CXX=g++ F77=ifort FC=ifort FFLAGS=-i8 FCFLAGS=-i8
make
make install all

2编译GA 并行库(global array )
pccompile的内容

export BLAS_I8=yes
#export BLAS_LIB="-L/Users/bsuo/library/mathlib -lblas64 -llapck64"
export BLAS_LIB=“-lmkl_intel_ilp64  -lmkl_intel_thread -lmkl_core -lpthread”#用mkl代替blas 和lapck 
export MPIHOME=/Users/bsuo/Library/openmpi#openmpi 家目录

export FC=ifort 
export CC=gcc
export MPIFC=$MPIHOME/bin/mpif90
export MPICC=$MPIHOME/bin/mpicc
export F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS=yes

./configure --prefix=/Users/bsuo/Library/ga-5-5 --with-mpi=$MPIHOME --enable-i8 --with-blas8="/Users/bsuo/Library/mathlib -lblas64" --with-lapack="-llapack64" FFLAGS=-i8 FCFLAGS=-i8

命令
./pccompile
make
make install

编译bdf ……………………………………………………………

pccompile的内容

#!/bin/bash

#Test If no input parameter, default value. 
export FC=ifort
export CC=gcc
export CXX=g++

export MPILIB="-I/User/bsuo/Library/
#mpi_lib信息可以通过mpif90 -showme 得到
openmpi/include  -L/User/bsuo/Library/openmpi -lmpi_f90 -lmpi_f77 -lmpi -ldl -lm -Wl,—export-dynamic -lrt -lnsl -lutil -I/User/bsuo/Library/ga-5-5/include -L/User/bsuo/Library/ga-5-5/lib -lga -larmci"
#红色字为ga库

# use your own lapack and blas libraries here
#export MATHLIB="-L/Users/bsuo/Library/mathlib/lapack-3.6.0 -llapack64 -lblas64 -lcblas -llapacke"
#export MATHINCLUDE="-I/Users/bsuo/Library/mathlib/lapack-3.6.0/LAPACKE/include -I/Users/bsuo/Library/mathlib/lapack-3.6.0/CBLAS/include"
#用mkl代替
export MATHLIB="-lmkl_intel_ilp64  -lmkl_intel_thread -lmkl_core -lpthread"
export MATHINCLUDE="-I/opt/intel/mkl/include"

./configure -enable-i8 —enable-debug=no —enable-parallel=yes #—enable-opencl=no -enable-arprec=no
阅读更多
个人分类: BDF编译问题
上一篇markdown语法小结
下一篇libmpi_f90找不到目标共享文件
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭