Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
- Access Violation in mkl_vml_mc3 with latest MKL

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

Highlighted
##

David_Hirschfeld

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-18-2013
03:28 AM

43 Views

Access Violation in mkl_vml_mc3 with latest MKL

* << ", "; } return 0; }*

8 Replies

Highlighted
##

The above code doesn't seem to format correctly. It's available in the attached zip file and also viewable in the following gist:

David_Hirschfeld

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-18-2013
03:37 AM

43 Views

Highlighted
##

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-18-2013
07:05 AM

43 Views

Dave, thanks for the test. we will check the issue on our side.

Highlighted
##

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-18-2013
10:06 PM

43 Views

David, we see the similar behavior on our side on win32/64 with the latest 11.0.update2. Thanks for the issue. We will back to you as soon as any news.

is that blocking issue for your application?

Highlighted
##

David_Hirschfeld

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-19-2013
06:54 AM

43 Views

Thanks for looking into it. I've reverted to 11.1 in the meantime as 11.2 either segfaults the code or returns unallocated memory giving incorrect results.

On another note, can you explain or point me to documentation explaining exactly what DF_QUASI_UNIFORM_PARTITION means in terms of the x-data passed to the interpolator? I found the description "Partition is quasi-uniform" less than enlightening :P

Thanks,

Dave

Highlighted
##

If you read the description for the argument x, you may find the answer. "Quasi-uniform" is the same as "Uniform", but lacks the end points*a* and *b*.

mecej4

Black Belt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-20-2013
05:13 AM

43 Views

I found the description "Partition is quasi-uniform" less than enlighteningI hope that you found it quasi-enlightening. :)

If you read the description for the argument x, you may find the answer. "Quasi-uniform" is the same as "Uniform", but lacks the end points

Highlighted
##

Andrey_N_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-20-2013
06:19 AM

43 Views

Hello Dave,

Uniform partition x={x(1),...,x(n)} is one in which all cells [x(i),x(i+1) ) have the same length delta = x(i+1)-x(i). The library expects that for uniform partition you provide the end-points of the partition interval, number of points, and specify related hint.

For quasi-uniform partition this is not the case, that is delta depends on i, delta = delta(i). At the same time, it is expected that those delta(i) slightly vary around a constant level, 1<=M/m <= C, where M=max{x(i),i=1,...,n-1}, m=min{x(i),i=1,..,n-1}, and C is a constant close to 1. For this reason we call it quasi-uniform. For this type of the partition the library expects array of n points, and the relavant hint. It makes sense to extend the documentation with additional details and references to literature. Thanks for catching this.

Feel free to ask more questions and/or share your feedback on Data Fitting component of Intel(R) MKL.

I have the quick update on the issue: as Gennady reported we reproduced the bug and are investigating it. Likely, it is caused by the code optimizations for a scalar case we integrated into Intel(R) MKL 11.0.2. Would keep you updated.

I have a couple of quick suggestions on your example above:

1. If you do not provide datahint, please set the pointer to null. Do not use the constant DF_NO_APRIORI_INFO to initialize it as this constant is intended to be used for initialization of the the first (in zero-based indexing) element of array datahint. Please, see additional details in description of Interpolate1D routine in Intel(R) MKL Manual

2. For linear type of spline please use DF_NO_BC to initialize boundary conditions (in general case), additional details can be found in the description of EditPPSpline1D editor in Intel(R) MKL Manual.

I also have the question for you: can you please briefly clarify the reasons for which you call the interpolation routine for one point(site) instead of accumulating the interpolation sites to a buffer and making one call to the interpolation routine with this buffer? This would help you to get additional performance gain vs a scalar case. Or, generally you use a vector approach, and use the example as just a short test to reproduce the issue?

Thanks,

Andrey

Highlighted
##

David_Hirschfeld

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

02-20-2013
09:44 AM

43 Views

Thanks for the detailed info/explanations!

The code was just a minimal example to demonstrate the problem. I found that the bug only manifested itself when passed a single value. This could happen in practice because the number of intyerpolation sites is function of a larger optimization process.

Highlighted
##

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-06-2013
01:57 PM

43 Views

David, please check the lates 11.0 update3. The issue has been fixed there. regards, Gennady

For more complete information about compiler optimizations, see our Optimization Notice.