Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

issues on Visual Studio 2017

$
0
0

Hello,

This is my first post here.

I'm using MKL for matrices multiplication in my current project.

Sometimes - just in RELEASE mode and with no pattern neither a way to reproduce the bug - my application either crashes or returns me crazy numbers (totally out of expected, according my unit tests). Again, It's sort of random, but I'm suspicious about the MKL parallelism.

And here is the strangeness - Intel Performance Libraries Properties is set this way (look the attachments):

  • Debug - Use Intel MKL - Parallel
  • Release - Use Intel MKL - Sequential

It's never crashed in Debug mode.

As an investigative act, I forced it in runtime to be sequential by calling 

mkl_set_num_threads(1);

every time my MKL routines need to be used, for both DEBUG and RELEASE.

Results?

It has not crashed anymore, neither has given me crazy numbers as output.

It's much slower, though, obviously. I was suspicious the flag above <Release - Use Intel MKL - Sequential> was not working in fact, because it should not behave differently.

Have you ever faced this kind of situation or I made something wrong right here?

I want to be back to the multi-thread mode, but I don't feel comfortable with these random errors.

Thank you very much.

AttachmentSize
Downloadimage/pngdebug.png62.43 KB
Downloadimage/pngrelease.png62.5 KB

Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>