Installation requires CMake
of version 3.2.3 at least. To build HCORE,
follow these instructions:
-
Get HCORE from git repository
git clone [email protected]:ecrc/hcore
-
Go into hcore folder
cd hcore
-
Get ECRC's CMake Module as a submodule using git as follows.
git submodule update --init --recursive
-
Create build directory and go there
mkdir build && cd build
-
Use CMake to get all the dependencies
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/install/
-
Build HCORE
make -j
-
Build local documentation (optional)
make docs
-
Install HCORE
make install
-
Add line
export PKG_CONFIG_PATH=/path/to/install:$PKG_CONFIG_PATH
to your .bashrc file to use HCORE as a library.
Now you can use pkg-config
executable to collect compiler and linker flags for HCORE.
Before including hcore.h
in the user code,
ARMPL
macro for ARM Performance libraries or MKL
macro
for Intel MKL should be defined for guiding hcore.h
to include correct header file for the BLAS and LAPACK(E) libraries.