-
Notifications
You must be signed in to change notification settings - Fork 0
Installation & Usage
Cem Bassoy edited this page Mar 12, 2024
·
4 revisions
Clone the TTM project
git clone https://github.com/bassoy/ttm.git
cd ttm
Install OpenBLAS, Intel MKL and OpenMP on Ubuntu 20.04 or higher
sudo apt update && sudo apt install -y g++ libomp-dev libopenblas-dev libmkl-dev intel-mkl
If you want to run unit tests, you need to have googletest
installed
git clone https://github.com/google/googletest.git
cd googletest
mkdir build && cd build
cmake .. -DBUILD_GMOCK=OFF && make -j && sudo make install
Compile and Execute Example Files
cd ttm/example
make clean && make -j BLAS_FLAG=MKL # or BLAS_FLAG=OPENBLAS
./interface1
./interface2
./interface3
Compile and Execute Unit Test
cd ttm/test
make clean && make -j BLAS_FLAG=MKL
./bin/main
Commonly used linking arguments for Intel MLK and for OpenBLAS are provided by provided by mkl.mk
and openblas.mk
.
Both .mk
files are included by the unit test Makefile
and examples Makefile
. If necessary, you can change your Intel MLK or OpenBLAS installation directory path in the respective .mk
files.
You can select the desired BLAS by providing either BLAS_FLAG=MKL
or BLAS_FLAG=OPENBLAS
when calling make
, see previous paragraph.