2.2. Installation¶
You can download
https://github.com/issp-center-dev/HPhi/releases
You can obtain the
$ tar xzvf HPhi-xxx.tar.gz
cd $HOME/build/hphi
cmake -DCONFIG=gcc $PathTohphi
make
To use ScaLAPACK library for full diagonalization, the cmake option -DUSE_SCALAPACK=ON
is needed.
Here, we set a path to $PathTohphi
and to a build directory as $HOME/build/hphi
.
After compilation, src
folder is constructed below a $HOME/build/hphi
folder and we obtain an executable HPhi
in src/
directory.
When no MPI library exists in the system, an executable HPhi
is automatically compiled without an MPI library.
In the above example,
we compile
sekirei
: ISSP system-B "sekirei"
sekirei_acc
: ISSP system-B "sekirei" (for using MAGMA library)
fujitsu
: Fujitsu compiler
intel
: Intel compiler + Linux PC
gcc
: GCC compiler + Linux PC.
An example of compiling
mkdir ./build
cd ./build
cmake -DCONFIG=intel ../
make
After compilation,
src
folder is created below the build
folder and
an execute src
folder.
Please note that we must delete the build
folder and
repeat the above operations when we change the compiler.
Tip
sh src/StdFace/download.sh
to download manually.-DSTDFACE_DIR=<path_to_stdface>
to cmake command.