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

Cannot redefine mkl_progress with tbb and static linking on MacOS

Sadri__Bardia
Beginner
542 Views

We've spend several days trying to override "mkl_progress" function. It is absolutely crucial for us to be able to abort the calculation (our software appears hanged otherwise if the input matrix grows too large and user cannot stop the computation). Unfortunately, despite all the efforts, there appears to be no way to take over the "mkl_progress". Even when I call "mkl_progress" directly, my redefined version is not called. I'm linking statically with MKL on MacOS and we use tbb. Is there any information you could gives to overcome this? The "mkl_set_progress" function also does nothing. The documentations on the matter are also depressingly insufficient. 

0 Kudos
3 Replies
Aaron_J_Intel2
Employee
542 Views

Hi Bardia,

 

I see a note in the documentation about the mkl_progress feature and TBB. 

"WARNING: The mkl_progress function only supports OpenMP* threading and sequential execution."

https://software.intel.com/content/www/us/en/develop/documentation/mkl-developer-reference-c/top/support-functions/miscellaneous/mkl-progress.html

 

Please submit mkl_progress support for TBB as a feature request.

0 Kudos
Gennady_F_Intel
Moderator
542 Views

here is the link to the Intel Online Service Center - https://supporttickets.intel.com/?lang=en-US

0 Kudos
Gennady_F_Intel
Moderator
542 Views

>> "...The documentations on the matter are also depressingly insufficient. "

What do you like to see from the mkl documentation else regarding this part beyond warnings?

"WARNING: The mkl_progress function only supports OpenMP* threading and sequential execution."

https://software.intel.com/content/www/us/en/develop/documentation/mkl-d.

0 Kudos
Reply