|
CPP-PROJECT
Dense and CSR Sparse matrix library in C++ leveraging Intel oneMKL (CBLAS)
|
In this project of ours we are developing a high-perfomance Dense and CSR Sparse matrix library in modern C++ (icpx), leveraging Intel oneMKL (CBLAS + MKL Sparse BLAS) for numerical computing and HPC applications.
The following build and compile instructions are for Linux (we will assume that you are using Ubuntu/Debian like distros). If you use Windows you may encounter problems.
Make sure you have all of the following installed before reading the Setup Instructions section.
Git:
https://git-scm.com/install/linux
or
CMake:
Intel oneAPI Base Toolkit:
https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html
VS Code (or you IDE of preference but we will assume you use VS Code below)
You usually can install it directly from the App Center or from here
First you will need to clone the repository to your desired destination.
Go to the directory you want to clone the project:
Clone the repo:
Then get inside the project root folder: cd Cpp-Project
Open your IDE:
For VS Code do:
Now to run the CMake Configuration run the following command in the VScode terminal:
this will create a directory called /obj where all the .o files will go.
Next, Build and Link everything with the following command:
Now to confirm that everything went well you can run one of the test functions .cpp files (all the executables are inside /bin)
it doesn't need to be test_CG_dsolve, this was just used as an example.