- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I encountered odd behaviour of those procedures when called for the first time - subsequent calls take shorter execution time. I assume it is caused by some allocations made by MKL library to speed-up. What can be done to avoid such situations?
I attach source code of my test. I've set environmental variables OMP_NUM_THREADS and MKL_NUM_THREADS to 1.
Thank you for any help,
Jacek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI Jacek,
When you run this function for the first time, many things happen behind the scenes, so it's normal for it to take longer. For smaller sizes, you can try using direct call or sequential mode (Using MKL_DIRECT_CALL in C Applications).
Also, could you provide us with more context about what your application does and what kind of usage of oneMKL you expect? We can try to find a better solution for your case.
Regards,
Aleksandra
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI Jacek,
When you run this function for the first time, many things happen behind the scenes, so it's normal for it to take longer. For smaller sizes, you can try using direct call or sequential mode (Using MKL_DIRECT_CALL in C Applications).
Also, could you provide us with more context about what your application does and what kind of usage of oneMKL you expect? We can try to find a better solution for your case.
Regards,
Aleksandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Aleksandra,
Thank you for your answer. Actually I was measuring time (in microseconds) of the problem involving very small matrix - later I checked for a much larger matrix and the difference was negligible, so the topic may be closed. I am sorry for confusion.
With regards,
Jacek

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page