<?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 segmentation fault in mkl_ddnscsr in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segmentation-fault-in-mkl-ddnscsr/m-p/851300#M6592</link>
    <description>&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;mkl_ddnscsr(job, &amp;amp;m, &amp;amp;n, v, &lt;B&gt;&amp;amp;n&lt;/B&gt;, sv, jsv, isv, &amp;amp;info);&lt;/P&gt;
&lt;P&gt;and let us know how it will work&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
    <pubDate>Sun, 14 Feb 2010 07:25:02 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2010-02-14T07:25:02Z</dc:date>
    <item>
      <title>segmentation fault in mkl_ddnscsr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segmentation-fault-in-mkl-ddnscsr/m-p/851299#M6591</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am trying to compile the following simple C program to test mkl_ddnscsr (convert from dense matrix to sparse csr matrix). It creates a dense m x 1 matrix (a dense vector) and tries to convert it. Unfortunately the program crashes (with a segmentation fault) in my enviroment. The program is attached if someone wants to try to compile it.&lt;/P&gt;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;#include &lt;MKL_SPBLAS.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main() &lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;#define M 100&lt;BR /&gt;&lt;BR /&gt; int m = M;&lt;BR /&gt; int n = 1;&lt;BR /&gt; double v&lt;M&gt;;&lt;BR /&gt; double sv&lt;M&gt;;&lt;BR /&gt; int isv[M + 1];&lt;BR /&gt; int jsv&lt;M&gt;;&lt;BR /&gt; int job[6] = {0, 0, 1, 2, M, 1};&lt;BR /&gt; int info;&lt;BR /&gt; int i;&lt;/M&gt;&lt;/M&gt;&lt;/M&gt;&lt;/MKL_SPBLAS.H&gt;&lt;/P&gt;
&lt;P&gt;for(i = 0; i &amp;lt; m; ++i)&lt;BR /&gt; v&lt;I&gt; = 1.0;&lt;BR /&gt;&lt;BR /&gt; mkl_ddnscsr(job, &amp;amp;m, &amp;amp;n, v, &amp;amp;m, sv, jsv, isv, &amp;amp;info);&lt;BR /&gt; &lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am using Linux (Ubuntu 9.10), gcc 4.4.1 and I believe that I am getting the link options correct (I got the linking line from the link advisor). Here is the command line I use to compile:&lt;/P&gt;
&lt;P&gt;gcc -Wall -O3 -funroll-loops -ftree-vectorize -mtune=native -march=native -I/opt/intel/mkl/10.2.2.025/include -DVERBOSE -DDEBUG -lm -o testsparseblas testsparseblas.c /opt/intel/mkl/10.2.2.025/lib/em64t/libmkl_solver_lp64_sequential.a -Wl,--start-group /opt/intel/mkl/10.2.2.025/lib/em64t/libmkl_intel_lp64.a /opt/intel/mkl/10.2.2.025/lib/em64t/libmkl_sequential.a /opt/intel/mkl/10.2.2.025/lib/em64t/libmkl_core.a -Wl,--end-group -lpthread&lt;/P&gt;
&lt;P&gt;Any hints?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Obs: Sorry I could not make the editor honor the indentation in the code above, but it is so simple that the lack indentation does not make it unreadable.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2010 01:13:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segmentation-fault-in-mkl-ddnscsr/m-p/851299#M6591</guid>
      <dc:creator>pjssilva</dc:creator>
      <dc:date>2010-02-13T01:13:46Z</dc:date>
    </item>
    <item>
      <title>segmentation fault in mkl_ddnscsr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segmentation-fault-in-mkl-ddnscsr/m-p/851300#M6592</link>
      <description>&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;mkl_ddnscsr(job, &amp;amp;m, &amp;amp;n, v, &lt;B&gt;&amp;amp;n&lt;/B&gt;, sv, jsv, isv, &amp;amp;info);&lt;/P&gt;
&lt;P&gt;and let us know how it will work&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2010 07:25:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segmentation-fault-in-mkl-ddnscsr/m-p/851300#M6592</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-02-14T07:25:02Z</dc:date>
    </item>
  </channel>
</rss>

