Commit 649e9783 authored by smoretti's avatar smoretti
Browse files

Extend INSTALL file

git-svn-id: https://svn.vital-it.ch/svn/hp2c/trunk/Codeml_Variants/Fastcodeml@7203 95c5a404-1f88-0410-a6b0-c3f062b6f34a
parent abba19cc
Requirements to generate the executable:
REQUIREMENTS to generate the executable:
* C++ compiler, e.g. GCC 4
* CMake 2.8.0 (including ccmake) or later recommended, although compilation possible without
* Boost::Spirit, see http://boost-spirit.com/home/
* Reasonably new BLAS implementation (e.g. OpenBLAS, Goto2, ACML, MKL); packages from various Linux distributions can be used, but this deteriorates performance; recommended: OpenBLAS (http://xianyi.github.io/OpenBLAS/) or Intel MKL
* Reasonably new LAPACK library (e.g. original LAPACK or ACML, MKL); packages from various Linux distributions can be used, but this deteriorates performance
* Boost::Spirit 1.42.0 or later recommended, see http://boost-spirit.com/home/
* Reasonably new BLAS implementation (e.g. OpenBLAS, Goto2, ACML, MKL)
packages from various Linux distributions can be used, but this deteriorates performance
recommended: OpenBLAS (http://xianyi.github.io/OpenBLAS/) or Intel MKL
* Reasonably new LAPACK library (e.g. original LAPACK or ACML, MKL)
packages from various Linux distributions can be used, but this deteriorates performance
How to generate the FastCodeML executable:
* Generate BLAS if necessary
* Generate LAPACK if necessary
* Generate NLopt library (http://ab-initio.mit.edu/wiki/index.php/NLopt)
* Edit CMakeLists.txt if necessary
* Set paths for libraries (change and execute SETPATHS)
* "ccmake ." and switch USE_MPI and USE_OPENMP on/off (other default settings should be ok)
* make will create an executable "fast"
INSTALLATION: How to generate the FastCodeML executable:
0)
* Generate BLAS, if necessary
Download OpenBLAS from https://github.com/xianyi/OpenBLAS/
make USE_THREAD=0 USE_OPENMP=1
make PREFIX=path/to/installation/blas install
* Generate LAPACK, if necessary
Download LAPACK from http://www.netlib.org/lapack/
Take the gfortran version of the makefile:
cp INSTALL/make.inc.gfortran ./make.inc
In the make.inc file set BLASLIB to the full path to the generated BLAS
e.g. BLASLIB = path/to/installation/blas/lib/libopenblas.a
Two libraries will be created: lapack.a and tmglib.a. We put them in a folder and merge them:
unpack in a new directory
ar x liblapack.a and ar x tmglib.a
merge into a new LAPACK library
ar rcs liblapack.a *.o
* Generate NLopt library, if necessary
Download NLopt from http://ab-initio.mit.edu/wiki/index.php/NLopt
Install it
./configure --prefix=path/to/installation/nlopt
make USE_THREAD=0
make install
* Generate BOOST library (>= 1.42.0), if necessary
Download BOOST from http://sourceforge.net/projects/boost/files/latest/download?source=files
Install it
./bootstrap.sh --prefix=path/to/installation/boost
./b2 install
* Generate MPI library, if necessary
Download MPI from http://www.mpich.org/static/downloads/
Install it
./configure --prefix=path/to/installation/mpi
make
make install
1)
* Open FastCodeML tarball
tar xvfz FastCodeML-X.Y.Z.tar.gz
cd FastCodeML-X.Y.Z/
* Edit CMakeLists.txt to enable/disable (ON/OFF) optimization libraries (in "Get the configuration switches" section)
switch USE_MPI and USE_OPENMP ON/OFF (other default settings should be ok)
* Set paths for libraries (change and execute SETPATHS) (use only what you require)
BLAS_LIB_DIR = path/to/installation/blas/lib
LAPACK_LIB_DIR = path/to/installation/blas/include
MKL_INCLUDE_DIR = path/to/installation/mkl/include
NLOPT_INCLUDE_DIR = path/to/installation/nlopt/include
NLOPT_LIB_DIR = path/to/installation/nlopt/lib
MATH_LIB_NAMES = "openblas;lapack;gfortranbegin;gfortran"
* Build executable
ccmake .
make
* An executable "fast" is created
Computer system:
* Linux preferred, but sources are portable to other platforms
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment