<?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 Hi Tianhua, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113229#M24512</link>
    <description>&lt;P&gt;Hi Tianhua,&lt;/P&gt;

&lt;P&gt;Would you be able help us reproduce the crash on our side by creating and sharing with us a standalone test case (probably, VS project)?&lt;/P&gt;

&lt;P&gt;If it is not possible, can you share as many details on the configuration of the project including compiler flags, linkage settings and the version of Visual Studio?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Victoriya&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 14:52:47 GMT</pubDate>
    <dc:creator>VictoriyaS_F_Intel</dc:creator>
    <dc:date>2017-05-23T14:52:47Z</dc:date>
    <item>
      <title>Strange bad memory of MKL spline function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113224#M24507</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I am using MKL compilers_and_libraries_2017.4.210 (update 3) and following the developer guide to construct a cubic spline interpolation workflow. However no matter how I configure my inputs the scoeff values from &lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;dfdEditPPSpline1D() output stays bad memory allocation. The function return a&amp;nbsp;good status but then crashes in the next function dfdConstruct1D(). I wonder whether I miss something in my configuration or inclusion of files, or whether there is a bug. My source code was copied below with dummy input data.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Tianhua&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;--------------------------------------------&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;For compile, I included 34 h files that are enough for my project.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;For link I included mkl_core.lib, mkl_core_dll.lib, &lt;/FONT&gt;&lt;/FONT&gt;mkl_intel_ilp64.lib, mkl_intel_ilp64_dll.lib, mkl_sequential.lib and mkl_sequential_dll.lib.&lt;/P&gt;

&lt;P&gt;For execution, I included mkl_core.dll, mkl_sequential.dll and mkl_vml_def.dll&lt;/P&gt;

&lt;P&gt;Those appear enough.&lt;/P&gt;

&lt;P&gt;Dummy source code which has bad memory of scoeff pointer and crashes in the next function.&lt;/P&gt;

&lt;P&gt;------{&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//setup MKL data structures&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#808080" face="Consolas" size="2"&gt;&lt;FONT color="#808080" face="Consolas" size="2"&gt;&lt;FONT color="#808080" face="Consolas" size="2"&gt;#define&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;SPLINE_ORDER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_PP_CUBIC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* A cubic spline to construct */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; status; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Status of a Data Fitting operation */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DFTaskPtr&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; task; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Data Fitting operations are task based */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Parameters describing the partition */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; nx; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* The size of partition x */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; xhint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information about the structure of breakpoints */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Parameters describing the function */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; ny; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Function dimension */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; yhint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information about the function */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Parameters describing the spline */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; s_order; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Spline order */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; s_type; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Spline type */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; ic_type; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Type of internal conditions */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;* ic; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Array of internal conditions */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; bc_type; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Type of boundary conditions */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;* bc; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Array of boundary conditions */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; scoeff[(20 - 1)* &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;SPLINE_ORDER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;]; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Array of spline coefficients */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; scoeffhint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information about the coefficients */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; sitehint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information about the structure of&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;interpolation sites */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; ndorder, dorder; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Parameters defining the type of interpolation */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;* datahint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information on partition and interpolation sites */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; *r; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Array of interpolation results */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;r = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;[20];&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; rhint; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Additional information on the structure of the results */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;MKL_INT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;* cell; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Array of cell indices */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Initialize the partition */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;nx = 10;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;nsite = 20;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;double&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; x[10], y[10];&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;for&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; i = 0; i &amp;lt; 10; i++)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;x&lt;I&gt; = i;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;y&lt;I&gt; = pow(i, 3);&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;for&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; i = 0; i &amp;lt; 20; i++)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;site&lt;I&gt; = i;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;for&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; i = 0; i &amp;lt; 19 * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;SPLINE_ORDER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; i++)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;scoeff&lt;I&gt; = -9999.0;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;xhint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NON_UNIFORM_PARTITION&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* The partition is non-uniform. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Initialize the function */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;ny = 1; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* The function is scalar. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;yhint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NO_HINT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* No additional information about the function is provided. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfdNewTask1D(&amp;amp;task, nx, x, xhint, ny, y, yhint);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (status == 0)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Initialize spline parameters */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;s_order = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_PP_CUBIC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Spline is of the fourth order (cubic spline). */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;s_type = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_PP_NATURAL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Spline is of the natural cubic spline type. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Define internal conditions for cubic spline construction (none in this example) */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;ic_type = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NO_IC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;ic = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;NULL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Use not-a-knot boundary conditions. In this case, the is first and the last&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;interior breakpoints are inactive, no additional values are provided. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;bc_type = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_BC_FREE_END&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//natural cubic spline&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;bc = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;NULL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;scoeffhint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NO_HINT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* No additional information about the spline. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfdEditPPSpline1D(task, s_order, s_type, bc_type, 0, ic_type,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;0, &amp;amp;scoeff[0], scoeffhint);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//continue only when the internal boundary condition task is successful&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (status == 0)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Use a standard method to construct a cubic Bessel spline: */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Pi(x) = ci,0 + ci,1(x - xi) + ci,2(x - xi)2 + ci,3(x - xi)3, */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* The library packs spline coefficients to array scoeff: */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* scoeff[4*i+0] = ci,0, scoef[4*i+1] = ci,1, */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* scoeff[4*i+2] = ci,2, scoef[4*i+1] = ci,3, */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* i=0,...,N-2 */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfdConstruct1D(task, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_PP_SPLINE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_METHOD_STD&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;// skip the data construction check, TZ May 2017&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;sitehint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NON_UNIFORM_PARTITION&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Partition of sites is non-uniform */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;ndorder = 1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;dorder = 1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;datahint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_NO_APRIORI_INFO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* No additional information about breakpoints or&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;sites is provided. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;rhint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_MATRIX_STORAGE_ROWS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* The library packs interpolation results&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;in row-major format. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;cell = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;NULL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Cell indices are not required. */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* Solve interpolation problem using the default method: compute the spline values&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;at the points site(i), i=0,..., nsite-1 and place the results to array r */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfdInterpolate1D(task, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_INTERP&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_METHOD_PP&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, nsite, site,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;sitehint, ndorder, &amp;amp;dorder, datahint, r, rhint, cell);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;/* De-allocate Data Fitting task resources */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfDeleteTask(&amp;amp;task);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;--------------------&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 13:26:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113224#M24507</guid>
      <dc:creator>lucyhua_zhang2003</dc:creator>
      <dc:date>2017-05-18T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Tianhua, do you really need</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113225#M24508</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Tianhua, do you really need to link with ilp64 libs? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Could you check how the case will work w/ lp64? &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;and please have a look at the MKL Linker Adviser to choose the recommended list of MKL's libraries (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor)" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor)&lt;/A&gt;!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;In the case if you really need to use ILP64, then don't forget to add compiler option - /DMKL_ILP64&amp;nbsp;&lt;/P&gt;

&lt;P&gt;thanks, Gennady&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113225#M24508</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-05-19T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Hi Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113226#M24509</link>
      <description>&lt;P&gt;Hi Gennady,&lt;/P&gt;

&lt;P&gt;Thanks for the response.&lt;/P&gt;

&lt;P&gt;Still no luck. I double checked and I do need ilp64 lib.&lt;/P&gt;

&lt;P&gt;I am using MS Visual Studio 2015 and I added &amp;nbsp;/DMKL_ILP64 -I"%MyPathThirdParty%"\include and no changes. The bad memory and later on crash remains the same.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 11:58:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113226#M24509</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-05-19T11:58:43Z</dc:date>
    </item>
    <item>
      <title>Hello Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113227#M24510</link>
      <description>&lt;P&gt;Hello Tianhua,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Per our analysis of your test case, we suggest to address several aspects in the code:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;
		&lt;P&gt;Allocate memory for the array of interpolation sites ‘site’. You can allocate the memory using this code:&lt;/P&gt;

		&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; site = new double[20];&lt;/P&gt;
	&lt;/LI&gt;
	&lt;LI&gt;
		&lt;P&gt;Modify the dimension of an array of spline coefficients ‘scoeff’ and set it to (NX - 1) * SPLINE_ORDER, where NX is the size of the partition x.&lt;/P&gt;

		&lt;P&gt;NX = 10 in the code you have provided.&lt;/P&gt;
	&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I attach the modified test case.&lt;/P&gt;

&lt;P&gt;Can you please run the attached code and report about the results on your side?&lt;/P&gt;

&lt;P&gt;Can you also provide&amp;nbsp;details about OS and CPU you use? This will help us better investigate your issue.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;On dfdEditPPSpline1D() function: this function does not perform the computations, it just registers the pointers to memory buffers&amp;nbsp; you provided for spline coefficients, boundary and internal conditions, in the Data Fitting task.&lt;/P&gt;

&lt;P&gt;Thus, it is okay to see that values in the ‘scoeff’ array are not modified after the call to dfdEditPPSpline1D() function.&lt;/P&gt;

&lt;P&gt;The function dfdConstruct1D() run actual computations and modifies ‘scoeff’ array.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks, Egor&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//setup MKL data structures
#include &amp;lt;stddef.h&amp;gt;
#define SPLINE_ORDER DF_PP_CUBIC /* A cubic spline to construct */
#define NX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10
#define NSITE&amp;nbsp;&amp;nbsp; 20

void main()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; int status;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Status of a Data Fitting operation */

&amp;nbsp;&amp;nbsp;&amp;nbsp; DFTaskPtr task;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data Fitting operations are task based */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters describing the partition */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT nx;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The size of partition x */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT xhint;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Additional information about the structure of breakpoints */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters describing the function */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT ny;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Function dimension */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT yhint;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Additional information about the function */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters describing the spline */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT s_order;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Spline order */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT s_type;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Spline type */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT ic_type;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Type of internal conditions */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double* ic;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Array of internal conditions */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT bc_type;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Type of boundary conditions */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double* bc;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Array of boundary conditions */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double scoeff[(NX - 1) * SPLINE_ORDER];&amp;nbsp; /* Array of spline coefficients */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT scoeffhint; /* Additional information about the coefficients */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters describing the interpolation sites */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double* site;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Array of interpolation sites */
&amp;nbsp;&amp;nbsp;&amp;nbsp; site = new double[NSITE];
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT sitehint;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Additional information about the structure of interpolation sites */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT ndorder, dorder;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters defining the type of interpolation */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double* datahint;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Additional information on partition and interpolation sites */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Parameters describing the interpolation results */
&amp;nbsp;&amp;nbsp;&amp;nbsp; double* r = NULL;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Array of interpolation results */
&amp;nbsp;&amp;nbsp;&amp;nbsp; r = new double[NSITE];
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT rhint;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Additional information on the structure of the results */
&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT* cell;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Array of cell indices */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize the partition */
&amp;nbsp;&amp;nbsp;&amp;nbsp; nx = NX;
&amp;nbsp;&amp;nbsp;&amp;nbsp; nsite = NSITE;
&amp;nbsp;&amp;nbsp;&amp;nbsp; double x[NX], y[NX];
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; nx; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;I&gt; = i;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&lt;I&gt; = pow(i, 3);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; NSITE; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; site&lt;I&gt; = i;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; (nx - 1) * SPLINE_ORDER; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scoeff&lt;I&gt; = -9999.0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; xhint = DF_NON_UNIFORM_PARTITION; /* The partition is non-uniform. */

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize the function */
&amp;nbsp;&amp;nbsp;&amp;nbsp; ny = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The function is scalar. */
&amp;nbsp;&amp;nbsp;&amp;nbsp; yhint = DF_NO_HINT; /* No additional information about the function is provided. */

&amp;nbsp;&amp;nbsp;&amp;nbsp; status = dfdNewTask1D(&amp;amp;task, nx, x, xhint, ny, y, yhint);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status == 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize spline parameters */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_order = DF_PP_CUBIC;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Spline is of the fourth order (cubic spline). */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_type&amp;nbsp; = DF_PP_NATURAL;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Spline is of the natural cubic spline type. */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Define internal conditions for cubic spline construction (none in this example) */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ic_type = DF_NO_IC;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ic = NULL;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Use free-end boundary conditions. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bc_type = DF_BC_FREE_END; //natural cubic spline
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bc = NULL;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scoeffhint = DF_NO_HINT; /* No additional information about the spline. */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = dfdEditPPSpline1D(task, s_order, s_type, bc_type, 0, ic_type, 0, scoeff, scoeffhint);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //continue only when the internal boundary condition task is successful
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status == 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Use a standard method to construct a cubic Bessel spline: */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Pi(x) = ci,0 + ci,1(x - xi) + ci,2(x - xi)2 + ci,3(x - xi)3, */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The library packs spline coefficients to array scoeff: */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* scoeff[4*i+0] = ci,0, scoef[4*i+1] = ci,1, */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* scoeff[4*i+2] = ci,2, scoef[4*i+1] = ci,3, */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* i=0,...,N-2 */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = dfdConstruct1D(task, DF_PP_SPLINE, DF_METHOD_STD);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // skip the data construction check, TZ May 2017
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status != 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Error in spline construction
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sitehint = DF_NON_UNIFORM_PARTITION; /* Partition of sites is non-uniform */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ndorder = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dorder = 1;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datahint = DF_NO_APRIORI_INFO;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* No additional information about breakpoints or sites is provided. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rhint&amp;nbsp;&amp;nbsp;&amp;nbsp; = DF_MATRIX_STORAGE_ROWS;&amp;nbsp; /* The library packs interpolation results in row-major format. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NULL;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Cell indices are not required. */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Solve interpolation problem using the default method: compute the spline values
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at the points site(i), i=0,..., nsite-1 and place the results to array r */

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = dfdInterpolate1D(task, DF_INTERP, DF_METHOD_PP, nsite, site, sitehint, ndorder, &amp;amp;dorder, datahint, r, rhint, cell);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (status != 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Error in spline-based interpolation
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* De-allocate Data Fitting task resources */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = dfDeleteTask(&amp;amp;task);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 14:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113227#M24510</guid>
      <dc:creator>Egor_F_Intel</dc:creator>
      <dc:date>2017-05-22T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Hello Egor,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113228#M24511</link>
      <description>&lt;P&gt;Hello Egor,&lt;/P&gt;

&lt;P&gt;I merged the changes as above and the crash remains.&lt;/P&gt;

&lt;P&gt;1) The memory allocation of site[] was done before. I just forgot to copy it. Otherwise it should crash much earlier. The dummy code was imbedded in my private code and I did not separate them cleanly&lt;/P&gt;

&lt;P&gt;2) The include of &amp;lt;stddef.h&amp;gt;, adjustment of array dimension did not work. I still crash at the same place, i.e. at dfdConstruct1D() function. The only strange thing I can see is that scoeff has invalid memory. The others are sealed inside in dfdConstruct1D() and I have no idea why it crashes. Maybe you know more&lt;/P&gt;

&lt;P&gt;3) I am using Dell laptop with processor Intel(R) Core(TM) i7-4930MX CPU @3.00GHz and 3.2GHz. Windows 7 Enterprise SP1&amp;nbsp;64-bit operating system with company package. Also I develop on top of&amp;nbsp;Ocean for Techlog 64-bit APIs --&amp;nbsp;this is only to say&amp;nbsp;that&amp;nbsp;I need to compile and run on 64-bit Release system of Visual Studio C++. I included Intel MKL libs as third party inclusion with the 3 libs mentioned as well as 3 dlls in the execution directory&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;

&lt;P&gt;Thank for your help and best regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 07:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113228#M24511</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-05-23T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Hi Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113229#M24512</link>
      <description>&lt;P&gt;Hi Tianhua,&lt;/P&gt;

&lt;P&gt;Would you be able help us reproduce the crash on our side by creating and sharing with us a standalone test case (probably, VS project)?&lt;/P&gt;

&lt;P&gt;If it is not possible, can you share as many details on the configuration of the project including compiler flags, linkage settings and the version of Visual Studio?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Victoriya&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:52:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113229#M24512</guid>
      <dc:creator>VictoriyaS_F_Intel</dc:creator>
      <dc:date>2017-05-23T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Hi Victoriya,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113230#M24513</link>
      <description>&lt;P&gt;Hi Victoriya,&lt;/P&gt;

&lt;P&gt;It is a good idea to reproduce the crash.&lt;/P&gt;

&lt;P&gt;1) You have all the source code. So I believe it should be easy for your side to build a standalone C++ Win64 project and see whether the crash happens or not. It is public, the source code as well standalone Visual Studio C++ project creation&lt;/P&gt;

&lt;P&gt;2) There is a second possibility that I am developing on Ocean For Techlog SDK platform, which it is not public and I believe you cannot test on your own without me going through some confidentiality checking. So what I did was: I created a "standalone" project on top of this SDK layer (to remove my private project source code just in case memory issue coming from somewhere else). With this "standalone" project I have basic SDK environment and the above public MKL Spline functionality. And the crash and bad memory of scoeff remains the same.&lt;/P&gt;

&lt;P&gt;So what I propose is: you do a standalone public C++ test to see whether you can run through the above public code or not.&lt;/P&gt;

&lt;P&gt;--If you succeed in running, then the issue comes from the incompatibility between our SDK layer and your libraries. Then I and you probably need to go through some company formality in order to continue.&lt;/P&gt;

&lt;P&gt;--However if you can reproduce the crash even with the public code as well as standard VS project, it means your libraries have something need to be considered&lt;/P&gt;

&lt;P&gt;At the same time, I have a tight development time, I already found new source code from Numerical Recipies of cubic spline and implemented them.&lt;/P&gt;

&lt;P&gt;Let me know if you have found something with standard VS C++ project.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 07:49:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113230#M24513</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-05-24T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Hi Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113231#M24514</link>
      <description>&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Hi Tianhua, &lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;A name="_MailEndCompose"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;I integrated Intel MKL 2017 Update 3 into MSVS* 2015 and built a standalone C++ Win64 project using the test-case provided earlier, and ILP64 mode and dynamic sequential library of Intel MKL. The crash is not reproduced. &lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: RU; mso-bidi-language: AR-SA;"&gt;I attach the project. Please, run it on your computer and let us know results.&lt;/SPAN&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/551849"&gt;551849&lt;/A&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This is result Build Command Line:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;cl /c /Zi /W3 /WX- /sdl- /O2 /Oi /GL /D _MBCS /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"x64\Release\\" /Fd"x64\Release\vc140.pdb" /Gd /TP /errorReport:prompt /D MKL_ILP64 main.cpp&lt;/PRE&gt;

&lt;P&gt;This is Link Command Line:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;"/OUT:c:\users\documents\visual studio 2015\Projects\mkl_df_issue\x64\Release\mkl_df_issue.exe" /VERBOSE /LIBPATH:Z:\MKL\__release_win\mkl\lib\intel64_win /LTCG:STATUS mkl_core.lib mkl_core_dll.lib mkl_intel_ilp64.lib mkl_intel_ilp64_dll.lib mkl_sequential.lib mkl_sequential_dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:c:\users\documents\visual studio 2015\Projects\mkl_df_issue\x64\Release\mkl_df_issue.pdb" /OPT:REF /OPT:ICF /LTCG:incremental /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:c:\users\documents\visual studio 2015\Projects\mkl_df_issue\x64\Release\mkl_df_issue.lib" /MACHINE:X64 x64\Release\main.obj&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113231#M24514</guid>
      <dc:creator>Egor_F_Intel</dc:creator>
      <dc:date>2017-05-25T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Hi EGOR,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113232#M24515</link>
      <description>&lt;P&gt;Hi EGOR,&lt;/P&gt;

&lt;P&gt;Thanks for the solution. Sorry it took me a bit of time to get some free time.&lt;/P&gt;

&lt;P&gt;I downloaded the solution and recompiled and run on VS2015. The crash is the same as before. The scoeff is invalid as before.&lt;/P&gt;

&lt;P&gt;I am using the library which will automatically installed to&lt;/P&gt;

&lt;P&gt;Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\...&lt;/P&gt;

&lt;P&gt;Not sure whether this helps or not.&lt;/P&gt;

&lt;P&gt;I am using VS Build menu, not the command line. However I can see the Command Line setting for C/C++ as following:&lt;/P&gt;

&lt;P&gt;/GS /GL /W3 /Gy /Zc:wchar_t /I"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\mkl\include" /Zi /Gm- /Od /sdl- /Fd"x64\Release\vc140.pdb" /Zc:inline /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /Gd /Oi /MD /Fa"x64\Release\" /EHsc /Fo"x64\Release\" /Fp"x64\Release\mkl_df_issue.pch" /D MKL_ILP64&lt;/P&gt;

&lt;P&gt;Linker command line&lt;/P&gt;

&lt;P&gt;/OUT:"D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_df_issue.exe" /MANIFEST /LTCG:incremental /NXCOMPAT /PDB:"D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_df_issue.pdb" /DYNAMICBASE "mkl_core.lib" "mkl_core_dll.lib" "mkl_intel_ilp64.lib" "mkl_intel_ilp64_dll.lib" "mkl_sequential.lib" "mkl_sequential_dll.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /LTCG:STATUS /MACHINE:X64 /OPT:REF /PGD:"D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_df_issue.pgd" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Release\mkl_df_issue.exe.intermediate.manifest" /OPT:ICF /ERRORREPORT:PROMPT /VERBOSE /LIBPATH:"Z:\MKL\20170505\__release_win\redist\intel64_win\mkl" /LIBPATH:"Z:\MKL\20170505\__release_win\mkl\lib\intel64_win" /LIBPATH:"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\redist\intel64_win\mkl" /LIBPATH:"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\mkl\lib\intel64_win" /TLBID:1&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;regards,,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:45:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113232#M24515</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-01T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Hi Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113233#M24516</link>
      <description>&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Hi Tianhua,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Can I ask you to run another experiment with your test case by providing the required Intel MKL libraries, static or dynamic, not both to the linkage line&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Please, use Intel MKL link advisor &amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;&lt;U&gt;&lt;FONT color="#0563c1"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; to choose required configuration.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Also, can you please clarify what output did you observe with your latest test case? Say, it is a seg fault, wrong computation results or something else?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="EN" style="color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 9.5pt; mso-ansi-language: EN;"&gt;Egor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113233#M24516</guid>
      <dc:creator>Egor_F_Intel</dc:creator>
      <dc:date>2017-06-07T11:47:21Z</dc:date>
    </item>
    <item>
      <title>Hi Egor,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113234#M24517</link>
      <description>&lt;P&gt;Hi Egor,&lt;/P&gt;

&lt;P&gt;Attached is the advisor result screen snapshot in MKLAdvisor.jpg. I put this setting in VS project as is shown in VSProjectSetting,jpg.&lt;/P&gt;

&lt;P&gt;The project is Release x64.&lt;/P&gt;

&lt;P&gt;The execution terminated without going to the next line at function&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;status = dfdConstruct1D(task, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_PP_SPLINE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;&lt;FONT color="#6f008a" face="Consolas" size="2"&gt;DF_METHOD_STD&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;I did a debug point and follow the execution step by step. It reached this line, then exit. The Output information after the exit is below:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_df_issue.exe'. Symbols loaded.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_sequential.dll'. Module was built without symbols.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'D:\NGI\slim_NGI\testMKL\mkl_df_issue\mkl_df_issue\x64\Release\mkl_core.dll'. Module was built without symbols.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-runtime-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-string-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-heap-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-stdio-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-convert-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-math-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-locale-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-time-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;'mkl_df_issue.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-crt-filesystem-l1-1-0.dll'. Cannot find or open the PDB file.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;The program '[5144] mkl_df_issue.exe' has exited with code 2 (0x2).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Tianhua&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 08:59:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113234#M24517</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-08T08:59:06Z</dc:date>
    </item>
    <item>
      <title>I checked how this example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113235#M24518</link>
      <description>&lt;P&gt;I checked how this example works from command line. MKL 2017 u3, Win64 ( dynamic and/or static), LP64/ILP64 cases. The problem has not been reproduced on SSE4,2, AVX and AVX2 &amp;nbsp; processors. all works fine. the logs are attached.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 19:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113235#M24518</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-06-08T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Sorry but I did not find the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113236#M24519</link>
      <description>&lt;P&gt;Sorry but I did not find the attached logs. Any link?&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 12:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113236#M24519</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-09T12:53:20Z</dc:date>
    </item>
    <item>
      <title>I attached outputs for AVX,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113237#M24520</link>
      <description>&lt;P&gt;I attached outputs for AVX, SSE42 and AVX2 based system. windows 8.1, 64 bit, static link. the similar results were obtained with dynamic linking mode too.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 06:43:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113237#M24520</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-06-10T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113238#M24521</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;

&lt;P&gt;For any reason, I do NOT see any attachment of the outputs.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 06:02:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113238#M24521</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-12T06:02:20Z</dc:date>
    </item>
    <item>
      <title>Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113239#M24522</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;

&lt;P&gt;At the same time, please find attached the standalone project I am using to demonstrate the crash. You may need to change VS 2015 C/C++ include directories for the .h files locations as well as Link/General for the lib directories.&lt;/P&gt;

&lt;P&gt;It should be able to be compiled and run in VS2015 in Windows as long as those folders are properly pointed to. To run the project, I used IDE run (the green triangle on IDE). Also you need to put mkl_core.dll, mkl_dequential.dll and mkl_vml_def.dll in solution/x64/Release folder where the mkl_df_issue.exe is generated.&lt;/P&gt;

&lt;P&gt;See whether you can reproduce my crash or not.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 06:13:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113239#M24522</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-12T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Hello Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113240#M24523</link>
      <description>&lt;P&gt;Hello Tianhua,&lt;/P&gt;

&lt;P&gt;Here is output I see on my side undere VS 2015 IDE. Windows 8.1, 64 bit, ILP64 mode, threading.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Major version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2017&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Minor version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	Update version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;BR /&gt;
	Product status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product&lt;BR /&gt;
	Build: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20170413&lt;BR /&gt;
	Platform: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Intel(R) 64 architecture&lt;BR /&gt;
	Processor optimization: &amp;nbsp;Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) e&lt;BR /&gt;
	nabled processors&lt;BR /&gt;
	================================================================&lt;/P&gt;

&lt;P&gt;scoeff[0] = 0.000000&lt;BR /&gt;
	scoeff[1] = 0.000222&lt;BR /&gt;
	scoeff[2] = 0.000000&lt;BR /&gt;
	scoeff[3] = 0.999778&lt;BR /&gt;
	scoeff[4] = 1.000000&lt;BR /&gt;
	scoeff[5] = 2.999556&lt;BR /&gt;
	scoeff[6] = 2.999334&lt;BR /&gt;
	scoeff[7] = 1.001110&lt;BR /&gt;
	scoeff[8] = 8.000000&lt;BR /&gt;
	scoeff[9] = 12.001554&lt;BR /&gt;
	scoeff[10] = 6.002664&lt;BR /&gt;
	scoeff[11] = 0.995782&lt;BR /&gt;
	scoeff[12] = 27.000000&lt;BR /&gt;
	scoeff[13] = 26.994229&lt;BR /&gt;
	scoeff[14] = 8.990011&lt;BR /&gt;
	scoeff[15] = 1.015760&lt;BR /&gt;
	scoeff[16] = 64.000000&lt;BR /&gt;
	scoeff[17] = 48.021532&lt;BR /&gt;
	scoeff[18] = 12.037292&lt;BR /&gt;
	scoeff[19] = 0.941176&lt;BR /&gt;
	scoeff[20] = 125.000000&lt;BR /&gt;
	scoeff[21] = 74.919645&lt;BR /&gt;
	scoeff[22] = 14.860821&lt;BR /&gt;
	scoeff[23] = 1.219534&lt;BR /&gt;
	scoeff[24] = 216.000000&lt;BR /&gt;
	scoeff[25] = 108.299889&lt;BR /&gt;
	scoeff[26] = 18.519423&lt;BR /&gt;
	scoeff[27] = 0.180688&lt;BR /&gt;
	scoeff[28] = 343.000000&lt;BR /&gt;
	scoeff[29] = 145.880799&lt;BR /&gt;
	scoeff[30] = 19.061487&lt;BR /&gt;
	scoeff[31] = 4.057714&lt;BR /&gt;
	scoeff[32] = 512.000000&lt;BR /&gt;
	scoeff[33] = 196.176915&lt;BR /&gt;
	scoeff[34] = 31.234628&lt;BR /&gt;
	scoeff[35] = -10.411543&lt;/P&gt;

&lt;P&gt;thanks, Gennady&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:12:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113240#M24523</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-06-13T11:12:26Z</dc:date>
    </item>
    <item>
      <title>HI Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113241#M24524</link>
      <description>&lt;P&gt;HI Gennady,&lt;/P&gt;

&lt;P&gt;thanks for the response. It is interesting -- on my side the scoeff values are -9999 (missing values by our definition).&lt;/P&gt;

&lt;P&gt;I attached my project settings that I think matters. Could you share the same screen snapshots so that I can compare? Did you do any special adjustment from default VS settings (besides the file paths)?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113241#M24524</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-13T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Hi Tianhua,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113242#M24525</link>
      <description>&lt;P&gt;Hi Tianhua,&lt;/P&gt;

&lt;P&gt;I changed two things into this solution: 1/ I used &lt;SPAN style="font-size: 1em;"&gt;Intel Compiler because of I have no install &amp;nbsp;(Platform Toolset = 'v140') cannot be found...&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;and the 2/ &amp;nbsp;you linked with&amp;nbsp;&lt;/SPAN&gt;mkl_core.lib all of these libs "&lt;SPAN style="font-size: 1em;"&gt;mkl_core_dll.lib&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;mkl_intel_ilp64.lib&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;mkl_intel_ilp64_dll.lib&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;mkl_sequential.lib&amp;nbsp;mkl_sequential_dll.lib" &amp;nbsp;This&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16.26px;"&gt;is not correct.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 16.26px;"&gt;I left only static libs or dynamic ( the results are the same).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;attached two screenshots for debug and release 64 bit outputs.&lt;/P&gt;

&lt;P&gt;hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:02:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113242#M24525</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-06-14T06:02:05Z</dc:date>
    </item>
    <item>
      <title>Hi Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113243#M24526</link>
      <description>&lt;P&gt;Hi Gennady,&lt;/P&gt;

&lt;P&gt;This advances a lot -- I removed all the xxx_dll.libs and the solution works. I did another test by removing all the static libs and leave only the xxx_dll.lib and it does NOT work.&lt;/P&gt;

&lt;P&gt;In this case it looks to me there is something wrong in the xxx_dll.libs. I wonder why they are in the distribution package and when to use them? Is there really a bug in them?&lt;/P&gt;

&lt;P&gt;Any way, thank you and all the rest technical team members who were involved in this issue analysis. The solution is NOT to use the xxx_dll.libs and only use the static ones.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Tianhua&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 12:06:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-bad-memory-of-MKL-spline-function/m-p/1113243#M24526</guid>
      <dc:creator>Tianhua_Z_</dc:creator>
      <dc:date>2017-06-14T12:06:26Z</dc:date>
    </item>
  </channel>
</rss>

