<?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 from dcsradd in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794181#M2522</link>
    <description>Hello. I get segmentation fault after this calling&lt;BR /&gt;&lt;BR /&gt;call mkl_dcsradd('T', 1, sort, size(imat1)-1, maxval(jmat1), mat1, jmat1, imat1, bb, mat3, jmat3, imat3, Wv, jWv, iWv, size(Wv), info).&lt;BR /&gt;&lt;BR /&gt;sort isn't set, bb=-1.d0. All arrays are allocatable, jWv and Wv are not allocated. Matrices mat1 and mat3 are in the attached files*. MKL version is 12.0.3. All parameters and matrices seem fine to me, and I can't figure what's it all about. Moreover, on MKL version 10.2.7 all work properly.&lt;BR /&gt;&lt;BR /&gt;Can you, please, help me with some advice?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*I attached them to my next comment&lt;BR /&gt;notes about matrices storage: &lt;BR /&gt;order of arrays - ja, ia, a &lt;BR /&gt;matrices are 15x15. mat1 has 15 nonzero elements, mat3 has 225 nonzero elements, most of them are zeros.</description>
    <pubDate>Thu, 28 Jun 2012 14:42:17 GMT</pubDate>
    <dc:creator>Duke_K</dc:creator>
    <dc:date>2012-06-28T14:42:17Z</dc:date>
    <item>
      <title>Segmentation fault from dcsradd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794181#M2522</link>
      <description>Hello. I get segmentation fault after this calling&lt;BR /&gt;&lt;BR /&gt;call mkl_dcsradd('T', 1, sort, size(imat1)-1, maxval(jmat1), mat1, jmat1, imat1, bb, mat3, jmat3, imat3, Wv, jWv, iWv, size(Wv), info).&lt;BR /&gt;&lt;BR /&gt;sort isn't set, bb=-1.d0. All arrays are allocatable, jWv and Wv are not allocated. Matrices mat1 and mat3 are in the attached files*. MKL version is 12.0.3. All parameters and matrices seem fine to me, and I can't figure what's it all about. Moreover, on MKL version 10.2.7 all work properly.&lt;BR /&gt;&lt;BR /&gt;Can you, please, help me with some advice?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*I attached them to my next comment&lt;BR /&gt;notes about matrices storage: &lt;BR /&gt;order of arrays - ja, ia, a &lt;BR /&gt;matrices are 15x15. mat1 has 15 nonzero elements, mat3 has 225 nonzero elements, most of them are zeros.</description>
      <pubDate>Thu, 28 Jun 2012 14:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794181#M2522</guid>
      <dc:creator>Duke_K</dc:creator>
      <dc:date>2012-06-28T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault from dcsradd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794182#M2523</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Do you have any code that could show this problem? That will help to look at this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao</description>
      <pubDate>Fri, 29 Jun 2012 02:56:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794182#M2523</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-06-29T02:56:31Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault from dcsradd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794183#M2524</link>
      <description>Thank you for answer.&lt;BR /&gt;&lt;BR /&gt;The thing is that I get this error just like that - read matrices from files and run the routine. I've made small separate program, and attached it to post along with updated matrices. I compile this program by "ifort -mkl segfault.f90", maybe it's not exactly the right way, but before that case I have no problems.&lt;BR /&gt;&lt;BR /&gt;Also I'd like to add, that version of MKL, which crushes on the case, is 10.3.3, not 12.0.3.</description>
      <pubDate>Tue, 03 Jul 2012 08:17:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794183#M2524</guid>
      <dc:creator>Duke_K</dc:creator>
      <dc:date>2012-07-03T08:17:42Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault from dcsradd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794184#M2525</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;For the attached code, it computed withthe request=1:&lt;/P&gt;&lt;P&gt;According to the manual: &lt;BR /&gt;If request=1, the routine computes only values of the array ic of length m + 1, the memory for this array must be allocated beforehand.&lt;/P&gt;&lt;P&gt;In thecode, resmat, jresmat do not allocate the memory. Also, the sort is undefined, it should be a integer value.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 03:35:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794184#M2525</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-07-10T03:35:14Z</dc:date>
    </item>
    <item>
      <title>Thank you for your answer,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794185#M2526</link>
      <description>Thank you for your answer, Chao.
But I didn't understand your suggestions quite well, will you, please, explain it to me one more time?
If request=1, array ic must be allocated, so in my code. After this calling, we get number of nonzero elements in matrix (nnz), so we can allocate arrays c and jc. But we may not allocate them, am I right? For example, if we just want to know nnz. And anyway, thing is that segmentation fault prevents procedure with request=1 from finishing, and this is my problem.
Thanks in advance for your answer and your time.</description>
      <pubDate>Mon, 03 Sep 2012 08:05:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794185#M2526</guid>
      <dc:creator>Duke_K</dc:creator>
      <dc:date>2012-09-03T08:05:42Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794186#M2527</link>
      <description>Hello, 
&amp;gt;But we may not allocate them, am I right? For example, if we just want to know nnz. And anyway, thing is that segmentation fault prevents procedure with request=1 from finishing, 

yes, those arrays are not allocated in your program, and it needs to allocated before calling the function. 

Thanks,
Chao</description>
      <pubDate>Wed, 12 Sep 2012 02:54:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-from-dcsradd/m-p/794186#M2527</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-09-12T02:54:24Z</dc:date>
    </item>
  </channel>
</rss>

