Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2430 Discussions

Intermittent malfunction of tbb::parallel_for

yangsa
Beginner
351 Views

Hello,

When I run a specific code using tbb::parallel_for, the results are randomly dropped one by one. The frequency is about one per 500,000 elements, and the index of the missing element changes each time. I am using TBB 2019.8.

The lambda in the threading block uses SIMD code, and the thread-safety of the code is sufficiently checked. When executed using PPL's concurrency::parallel_for, the symptom does not appear.

Have a bug similar to this ever reported? Or has anyone had similar symptoms?

 

0 Kudos
2 Replies
IntelSupport
Community Manager
324 Views

Hello. I have started an investigation.


IntelSupport
Community Manager
317 Views

Hello. I would like to reproduce your issue and possibly file a bug report but I am unable to do that without an example. Can you please send a snippet of code? Thank you.


Reply