Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6431 Discussions

multithreaded performance of sparse blas not good

ashade
Beginner
108 Views

Hi all

I'm having trouble with matrix multiplication on Sparse Blas. I am trying to multiply 2 huge matrices and compare multithreaded and single threaded performance on an quad core AMD Phenom II 940 with 4GB of DDR3 RAM.

I am using mkl_scsrmm. On benchmark, I repeat the call to mkl_scsrmm a hundred times and I compute the total time in seconds. The matrices have 700,000 (dense) and 20,000 (sparse) elements.

The problem is that the multithreaded performance is only 5% better than single threaded sequential performance.

What is happening?

Ashade

0 Kudos
2 Replies
mecej4
Black Belt
108 Views
With such benchmarks, the devil is in the details. You may be interested to see what Amdahl's Law states regarding your runs.

If you want more specific help, you will have to document what you did, and state reasons why the results are not what was expected.
Gennady_F_Intel
Moderator
108 Views
Ashade,
Do you mean that you see 5% of scalability with 4 cores vs 1 core?
what is the matrixes size?
Reply