Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Udi_Pfeffer
Beginner
39 Views

multi-threading slows software

I began using IPP for image processing recently. When I use the function:
"ippiSub_16s_C1RSfs" instead of pixel-by pixel subtraction it works very slow - more than 2ms for a 352X272 pixels image.
The strange thing is that if I decrease the number of threads from 8 to 1 the software runs faster - less than 1ms. I like it to run as fast as possible...

Configuration:
CPU: i7 CPU Q 720 @1.60GHz 1.60GHz
Memory: 4.00 GB (2.94 GB usable)
OS: 32-bit, windows 7

Any ideas?

Thanks in advance,
Udi

0 Kudos
2 Replies
Vladimir_Dudnik
Employee
39 Views

Hi Udi,

amount of data to process is quite small in your particular case, that might be a reason for slowdown (threading overhead is bigger than actual processing time).

You may also need to chech you call ippInit function (to initialize IPP dispatcher) in case you link with static libraries.

Regards,
Vladimir
Udi_Pfeffer
Beginner
39 Views

Thank you Vladimir, I didn't call ippInit at all...

Udi
Reply