Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

pawanlri

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-07-2011
05:50 PM

35 Views

Multithreading in MKL

I want to do a simplemulti-threadedmatrix using the routine mkl_dcoomm()

in MKL.

While compiling, I use these threaded libraries-lmkl_gnu_thread -lmkl_core -lmkl_intel_lp64

the program compiles, but I do not see any speedup, I have tried a range of matrix sizes, however

I use this routine for matrix-vector product, since matrix-vector is notmulti threadedin mkl sparse blas.

While running the program, I set the number of threads by : set MKL_NUM_THREADS=4

I do not see any significant speedup with varying the number of cores!

Am I missing something that is required to enable parallelism ?

Thanks,

Pawan

Link Copied

2 Replies

mecej4

Black Belt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-08-2011
05:11 AM

35 Views

See the section

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-09-2011
09:52 AM

35 Views

Pawan,

: I do not see any significant
speedup with varying the number of cores!

The performance of any spare matrix operations is much lower that the dense BLAS because the memory access patterns are irregular and the ration of float point operations is lower than in some dense operations. So thats the reason why you dont see any significant speedup.

So, if the matrix sizes are fit with the RAM, when it would be more efficient to use dense BLAS calculations.

In such cases It may be make a sense to convert from sparse to dense, then use m-v calculation for dense routines

--GennadyFor more complete information about compiler optimizations, see our Optimization Notice.