Benchmarks for the sparse matrix–vector multiplication (SpMV) with matrix formats in TNL.
-
Install Git.
-
Clone the repository:
git clone https://gitlab.com/tnl-project/tnl-benchmark-spmv.git -
Install the necessary tools and dependencies:
-
Configure the build using
cmakein the root path of the Git repository:cmake -B build -S . <additional_configure_options...>This will use
buildin the current path as the build directory. The path for the-Soption corresponds to the root path of the project. You may use additional options to configure the build:-DCMAKE_BUILD_TYPE=<type>where<type>is one ofDebug,Release,RelWithDebInfo-DCMAKE_CUDA_ARCHITECTURES=<arch>– to build for a CUDA architecture other than "native"
-
Build the targets using
cmake:cmake --build build -
Edit the launcher script scripts/run-benchmark as appropriate and run it:
./scripts/run-benchmark