Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7701 Discussions

Blitz crashing with Intel C++/OMP on Windows 7

dehvidc1
Beginner
160 Views
I have some code that I'm trying to thread. The code usesthe Blitz library. After applying an omp parallel for I can run a single thread on the loop concerned but if I try to run more than one thread the exe crashes.

If I use Parallel Inspector I get a larger number of Data race errors reported from within Blitz. I have a vague memory of reading some time ago that Blitz isn't thread safe.

Maybe someone can help me wiyth the following queries:

a/ Does Parallel Inspectorgenerate false positives ie say there's an error even if there isn't?

b/ Does anyone have experience using Blitz in multi-threaded code?

Thanks

David


0 Kudos
2 Replies
Om_S_Intel
Employee
160 Views
If the library that you are using is not thread safe then you may be able to use the locks using "#pragma omp critical". The locks may slow down the code execution.
Brandon_H_Intel
Employee
160 Views
I found this link when googling that may be helpful:

http://www.oonumerics.org/blitz/docs/blitz_8.html

You should post your question about Intel Parallel Inspector in the Intel Parallel Studio forum. The experts there should be able to assist.
Reply