<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The above code doesn't seem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947674#M15006</link>
    <description>&lt;P&gt;The above code doesn't seem to format correctly. It's available in the attached zip file and also viewable in the following gist:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/dhirschfeld/4976770" target="_blank"&gt;https://gist.github.com/dhirschfeld/4976770&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2013 11:37:26 GMT</pubDate>
    <dc:creator>David_Hirschfeld</dc:creator>
    <dc:date>2013-02-18T11:37:26Z</dc:date>
    <item>
      <title>Access Violation in mkl_vml_mc3 with latest MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947673#M15005</link>
      <description>&lt;P&gt;With the latest MKL (v. 11.0.2.149) the below code segfaults. With the previous MKL version it compiled and ran fine. This is with VS2012 compiling in x64. Solution attached. Is there anything wrong with the code or is this a bug in the latest MKL version? Thanks, Dave #include #include #include #include using namespace std; int main () { const int nx = 11; // #rows in x const int ny = 1; // #cols in y vector x(nx), y(nx); for(int i=0; i coeffs(ny*(nx-1)*s_order); status = dfdEditPPSpline1D(task, s_order, s_type, bc_type, nullptr, ic_type, nullptr, &amp;amp;coeffs[0], scoeffhint); status = dfdConstruct1D(task, DF_PP_SPLINE, DF_METHOD_STD); const MKL_INT nsite = 1; vector xi(nsite), yi(nsite); MKL_INT ndorder = 1; MKL_INT dorder = 1; double* datahint; datahint = DF_NO_APRIORI_INFO; MKL_INT rhint = DF_MATRIX_STORAGE_ROWS; MKL_INT sitehint = DF_NON_UNIFORM_PARTITION; xi[0] = 10; status = dfdInterpolate1D(task, DF_INTERP, DF_METHOD_PP, nsite, &amp;amp;xi[0], sitehint, ndorder, &amp;amp;dorder, datahint, &amp;amp;yi[0], rhint, NULL); status = dfDeleteTask(&amp;amp;task); for(int i=0; i&amp;lt;nsite; ++i){ cout &amp;lt;&amp;lt; yi&lt;I&gt; &amp;lt;&amp;lt; ", "; } return 0; }&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:28:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947673#M15005</guid>
      <dc:creator>David_Hirschfeld</dc:creator>
      <dc:date>2013-02-18T11:28:40Z</dc:date>
    </item>
    <item>
      <title>The above code doesn't seem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947674#M15006</link>
      <description>&lt;P&gt;The above code doesn't seem to format correctly. It's available in the attached zip file and also viewable in the following gist:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/dhirschfeld/4976770" target="_blank"&gt;https://gist.github.com/dhirschfeld/4976770&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:37:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947674#M15006</guid>
      <dc:creator>David_Hirschfeld</dc:creator>
      <dc:date>2013-02-18T11:37:26Z</dc:date>
    </item>
    <item>
      <title>Dave, thanks for the test. we</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947675#M15007</link>
      <description>&lt;P&gt;Dave, thanks for the test. we will check the issue on our side.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:05:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947675#M15007</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-02-18T15:05:14Z</dc:date>
    </item>
    <item>
      <title>David, we see the similar</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947676#M15008</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;is that blocking &amp;nbsp;issue for your application?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 06:06:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947676#M15008</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-02-19T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Thanks for looking into it. I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947677#M15009</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;On another note, can you explain or point me to documentation explaining exactly what&amp;nbsp;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&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mklman/GUID-E308EE83-B72B-4570-B4B3-AD6EAE08DC0A.htm#TBL17-3" target="_blank"&gt;http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mklman/GUID-E308EE83-B72B-4570-B4B3-AD6EAE08DC0A.htm#TBL17-3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947677#M15009</guid>
      <dc:creator>David_Hirschfeld</dc:creator>
      <dc:date>2013-02-19T14:54:49Z</dc:date>
    </item>
    <item>
      <title>Quote: I found the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947678#M15010</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt; I found the description "Partition is quasi-uniform" less than enlightening&lt;/BLOCKQUOTE&gt; I hope that you found it quasi-enlightening. :) 
&lt;BR /&gt;
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 &lt;I&gt;a&lt;/I&gt; and &lt;I&gt;b&lt;/I&gt;.&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 13:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947678#M15010</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-02-20T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Hello Dave,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947679#M15011</link>
      <description>&lt;P&gt;Hello Dave,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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,&amp;nbsp;1&amp;lt;=M/m &amp;lt;= 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&amp;nbsp;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.&lt;/P&gt;
&lt;P&gt;Feel free to ask more questions and/or share your feedback on Data Fitting component of Intel(R) MKL.&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;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.&lt;/P&gt;
&lt;P&gt;I have a couple of quick suggestions on&amp;nbsp;your example above:&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;constant&amp;nbsp;is intended to be used for initialization of the the first (in zero-based indexing)&amp;nbsp;element of array datahint. Please, see additional details in description of Interpolate1D routine in Intel(R) MKL Manual&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;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&amp;nbsp;as just a short test to reproduce the issue?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 14:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947679#M15011</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2013-02-20T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Thanks for the detailed info</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947680#M15012</link>
      <description>&lt;P&gt;Thanks for the detailed info/explanations!&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 17:44:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947680#M15012</guid>
      <dc:creator>David_Hirschfeld</dc:creator>
      <dc:date>2013-02-20T17:44:32Z</dc:date>
    </item>
    <item>
      <title>David, please check the lates</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947681#M15013</link>
      <description>&lt;P&gt;David, please check the lates 11.0 update3. The issue has been fixed there. regards, Gennady&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2013 20:57:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Access-Violation-in-mkl-vml-mc3-with-latest-MKL/m-p/947681#M15013</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-04-06T20:57:45Z</dc:date>
    </item>
  </channel>
</rss>

