<?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 MKL summary statistics error in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118404#M24821</link>
    <description>&lt;P&gt;I try to compute the mean of an array by the summary statistics function, &amp;nbsp;I am following the link&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/overview-of-summary-statistics-ss-in-intel-mkl-v103" target="_blank"&gt;https://software.intel.com/en-us/articles/overview-of-summary-statistics-ss-in-intel-mkl-v103&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However. after I compile it and run it, then it will have&amp;nbsp;Segmentation fault (core dumped) error.&lt;/P&gt;

&lt;P&gt;Here is my code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;int N &amp;nbsp;&amp;nbsp; &amp;nbsp;= 4;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;VSLSSTaskPtr task; /* SS task descriptor */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double x&lt;N&gt;; /* Array for dataset */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double mean; /* Array for mean estimate */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double* w = 0; /* Null pointer to array of weights, default weight equal to one will be used in the computation */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_INT p, n, xstorage;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; int status;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[0] = 0.1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[1] = 0.2;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[2] = 0.3;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[3] = 0.4;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; /* Initialize variables used in the computation of mean */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; p = 1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; n = N;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; xstorage = VSL_SS_MATRIX_STORAGE_ROWS;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; mean = 0.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; /* Step 1 - Create task */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSNewTask( &amp;amp;task, &amp;amp;p, &amp;amp;n, &amp;amp;xstorage, x, w, 0 );&lt;/N&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 2- Initialize task parameters */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSEditTask( task, VSL_SS_ED_MEAN, &amp;amp;mean );&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 3 - Compute the mean estimate using SS one-pass method */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSCompute(task, VSL_SS_MEAN, VSL_SS_METHOD_1PASS );&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 4 - deallocate task resources */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vslSSDeleteTask( &amp;amp;task );&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Almost the same as the example in the link. I don't know what is the problem, is it because i misunderstand the function?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Dec 2016 12:46:46 GMT</pubDate>
    <dc:creator>Chen__Jun</dc:creator>
    <dc:date>2016-12-18T12:46:46Z</dc:date>
    <item>
      <title>MKL summary statistics error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118404#M24821</link>
      <description>&lt;P&gt;I try to compute the mean of an array by the summary statistics function, &amp;nbsp;I am following the link&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/overview-of-summary-statistics-ss-in-intel-mkl-v103" target="_blank"&gt;https://software.intel.com/en-us/articles/overview-of-summary-statistics-ss-in-intel-mkl-v103&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However. after I compile it and run it, then it will have&amp;nbsp;Segmentation fault (core dumped) error.&lt;/P&gt;

&lt;P&gt;Here is my code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;int N &amp;nbsp;&amp;nbsp; &amp;nbsp;= 4;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;VSLSSTaskPtr task; /* SS task descriptor */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double x&lt;N&gt;; /* Array for dataset */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double mean; /* Array for mean estimate */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; double* w = 0; /* Null pointer to array of weights, default weight equal to one will be used in the computation */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_INT p, n, xstorage;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; int status;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[0] = 0.1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[1] = 0.2;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[2] = 0.3;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; x[3] = 0.4;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; /* Initialize variables used in the computation of mean */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; p = 1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; n = N;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; xstorage = VSL_SS_MATRIX_STORAGE_ROWS;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; mean = 0.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; /* Step 1 - Create task */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSNewTask( &amp;amp;task, &amp;amp;p, &amp;amp;n, &amp;amp;xstorage, x, w, 0 );&lt;/N&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 2- Initialize task parameters */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSEditTask( task, VSL_SS_ED_MEAN, &amp;amp;mean );&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 3 - Compute the mean estimate using SS one-pass method */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vsldSSCompute(task, VSL_SS_MEAN, VSL_SS_METHOD_1PASS );&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; /* Step 4 - deallocate task resources */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status = vslSSDeleteTask( &amp;amp;task );&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Almost the same as the example in the link. I don't know what is the problem, is it because i misunderstand the function?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 12:46:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118404#M24821</guid>
      <dc:creator>Chen__Jun</dc:creator>
      <dc:date>2016-12-18T12:46:46Z</dc:date>
    </item>
    <item>
      <title>When I use the example to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118405#M24822</link>
      <description>&lt;P&gt;When I use the example to check the error information, then I have&lt;/P&gt;

&lt;P&gt;VSL_SS_ERROR_STORAGE_NOT_SUPPORTED.&lt;/P&gt;

&lt;P&gt;I changed the format based on the reference, actually, there are only two kinds of storage format and neither of them does work. Could any one help me solve it? thanks before hand.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 23:36:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118405#M24822</guid>
      <dc:creator>Chen__Jun</dc:creator>
      <dc:date>2016-12-18T23:36:47Z</dc:date>
    </item>
    <item>
      <title>Hi Jun,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118406#M24823</link>
      <description>&lt;P&gt;Hi Jun,&lt;/P&gt;

&lt;P&gt;Can you please clarify the version of Intel MKL and&amp;nbsp;cpu you use in your experiments? Also, additional details on type of linkage and the version, 32- or 64 bit of the library would be helpful.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:32:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118406#M24823</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2016-12-19T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Quote:Andrey N. (Intel) wrote</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118407#M24824</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Andrey N. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Jun,&lt;/P&gt;

&lt;P&gt;Can you please clarify the version of Intel MKL and&amp;nbsp;cpu you use in your experiments? Also, additional details on type of linkage and the version, 32- or 64 bit of the library would be helpful.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi, Andrey,&lt;/P&gt;

&lt;P&gt;Thanks for your reply, I figured out the problem that I miss some parts in the makefile of my code. After fixed it, it works.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 22:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1118407#M24824</guid>
      <dc:creator>Chen__Jun</dc:creator>
      <dc:date>2016-12-19T22:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: MKL summary statistics error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1311969#M31977</link>
      <description>&lt;P&gt;For folks who may see the same issue. You need to add the following to the compile line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;-DMKL_ILP64 -m64&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 12:53:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-summary-statistics-error/m-p/1311969#M31977</guid>
      <dc:creator>alyekt</dc:creator>
      <dc:date>2021-09-03T12:53:19Z</dc:date>
    </item>
  </channel>
</rss>

