Newer
Older
mklspmv code performs multiplication of a sparse matrix with a dense vector using MKL's routine mkl_dcsrmv() on a multicore processor.
This is one of the code sample from the PRACE CodeVault. You can find more code samples available for download from the PRACE CodeVault here: https://gitlab.com/PRACE-4IP/CodeVault
./mklspmv test.mtx 2 PRINT_YES
1. ./mklspmv : Executable
2. test.mtx : Input matrix
3. 2 : Number of threads
4. PRINT_YES : Print input matrix to stdout
test.mtx contains a small matrix in Matrix Market format [1]
Prints timing information to output.
REFERENCES:
[1] http://math.nist.gov/MatrixMarket/formats.html