Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6977 Discussions

cblas_dgemm crashing when thread is terminated

Almeida__Caetano
Beginner
427 Views

Hello,

I have a multithread code and I using MKL multithreaded as well.

I have created a unit test that always crashes MKL.

Let me explain the test:

  • From the main thread (MT), I create another thread (T1) to multiply a 4096x4096 matrix.
  • T1 calls cblas_dgemm
  • It's a heavy processing, then I let MT sleep for 1 second
  • Then, I invoke T1 termination
  • MKL crashes 100% of my attempts so far

Would someone know how can I work this around? I mean, to turn cblas_dgemm thread safer.

Thanks.

0 Kudos
1 Solution
Almeida__Caetano
Beginner
427 Views

Resolved!

 

Updated from 2018.3 to 2019.4 and the crash doesn't happen anymore!

View solution in original post

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
427 Views

could you give us the example of the code we could compile and reproduce?

0 Kudos
Almeida__Caetano
Beginner
428 Views

Resolved!

 

Updated from 2018.3 to 2019.4 and the crash doesn't happen anymore!

0 Kudos
Reply