- Clone repository
- cd matrix-inversion
- mkdir build && cd build
- cmake .. && make -j4
- ./matrix_inversion [DIMENSION]
Use /usr/bin/time to measure execution time
Example:
/usr/bin/time ./matrix-inversion 200
- Install boost library. Version 1.66 or higher
For Debian distros:
sudo apt install libboost-all-dev
For Redhat distros:
sudo dnf install boost-devel
- cd tests
- mkdir build && cd build
- cmake .. && make -j4
- ./tests --log_level=test_suite
- Build program with symbols - Debug version in Cmake file
- Install Valgrind and kCachegrind
For Debian distros:
sudo apt install valgrind kcachegrind dot
For Redhat distros:
sudo dnf install valgrind kcachegrind dot
- Run valgrind:
valgrind --tool=cachegrind ./matrix-inversion 100
- Open cachegrind.out.XXX file.
kcachegrind cachegrind.out.16901