<?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 dss problem with complex matrix in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820320#M4672</link>
    <description>&lt;P&gt;Hello Panayotis,&lt;BR /&gt;Could you provide us with some info:&lt;BR /&gt;What structure of matrix do you use? Type of matrix? Real or Complex?&lt;BR /&gt;What routine is crashed dss_create, dss_definite_structure,  ? &lt;BR /&gt;&lt;BR /&gt;DSS and PARDISO results can be a bit different. PARDISO has additional option to improve solution. Also, PARDISO has matrix checker iparm(27) which can check the input matrix (integer arrays ia() and ja()).&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2010 03:57:20 GMT</pubDate>
    <dc:creator>Sergey_Solovev__Inte</dc:creator>
    <dc:date>2010-05-14T03:57:20Z</dc:date>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820317#M4669</link>
      <description>Hello everybody,&lt;BR /&gt;&lt;BR /&gt;I' m trying to execute a .f90 code to solve a sparsed complex matrix. As far as I checked matrices rowindex, columns, cvalues cRhsValues etc. are created correctly. When I run the code I receive&lt;BR /&gt;&lt;BR /&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;libc.so.6 00499190 Unknown Unknown Unknown&lt;BR /&gt;libc.so.6 0049AF9C Unknown Unknown Unknown&lt;BR /&gt;libmkl_core.so 00377DF2 Unknown Unknown Unknown&lt;BR /&gt;&lt;BR /&gt;Stack trace terminated abnormally.&lt;BR /&gt;&lt;BR /&gt;Does anybody has an idea about what is wrong in the code.&lt;BR /&gt;&lt;BR /&gt;P.S. I link the program to the routines in the following manner: ifort my_prog.f90 -mkl&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;&lt;BR /&gt;Panayotis</description>
      <pubDate>Thu, 13 May 2010 13:49:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820317#M4669</guid>
      <dc:creator>pkalozoum</dc:creator>
      <dc:date>2010-05-13T13:49:11Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820318#M4670</link>
      <description>&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Hello Panayotis,&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;I 'd recommend to use the Linker Adviser at the top of this forum. It will give You a suggestion how to link your application appropriate to yourconditions( platform, OS, threading and etc).&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 May 2010 14:02:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820318#M4670</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-13T14:02:38Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820319#M4671</link>
      <description>Gennady thank you for your quick responce. I tried what you said and indeed I do not get that error any more. But the dss returns "Solver returned error code 0" and the results are not correct. Is the DSS meant to give this error if it works properly? Is it a problem of not writing correctly my matrices? Moreover, if I change the matrix dimension (and consequently rowindex etc) I receive:&lt;BR /&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Image PC Routine Line Source &lt;BR /&gt;a.out 081166CC Unknown Unknown Unknown&lt;BR /&gt;a.out 080CA570 Unknown Unknown Unknown&lt;BR /&gt;a.out 080B6554 Unknown Unknown Unknown&lt;BR /&gt;a.out 0808A63F Unknown Unknown Unknown&lt;BR /&gt;a.out 08066A44 Unknown Unknown Unknown&lt;BR /&gt;&lt;BR /&gt;in case of static linking.&lt;BR /&gt;&lt;BR /&gt;And another question: Is there a difference in accuracy between pardiso and DSS? My program is written sequentially. &lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2010 15:35:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820319#M4671</guid>
      <dc:creator>pkalozoum</dc:creator>
      <dc:date>2010-05-13T15:35:58Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820320#M4672</link>
      <description>&lt;P&gt;Hello Panayotis,&lt;BR /&gt;Could you provide us with some info:&lt;BR /&gt;What structure of matrix do you use? Type of matrix? Real or Complex?&lt;BR /&gt;What routine is crashed dss_create, dss_definite_structure,  ? &lt;BR /&gt;&lt;BR /&gt;DSS and PARDISO results can be a bit different. PARDISO has additional option to improve solution. Also, PARDISO has matrix checker iparm(27) which can check the input matrix (integer arrays ia() and ja()).&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2010 03:57:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820320#M4672</guid>
      <dc:creator>Sergey_Solovev__Inte</dc:creator>
      <dc:date>2010-05-14T03:57:20Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820321#M4673</link>
      <description>Hello Sergey,&lt;BR /&gt;the system I try to solve is Ax=B, where A is N x N complex matrix and B is a complex column vector with every element equal to zero except one and I use static linking. I use the folowing:&lt;BR /&gt;&lt;BR /&gt;.............................................................................................................................................................................................&lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;!Initialize the solver &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;&lt;BR /&gt; error = dss_create(handle, MKL_DSS_DEFAULTS) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999 &lt;BR /&gt;  &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;! Define the non-zero structure of the matrix &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;&lt;BR /&gt; error = dss_define_structure(handle, MKL_DSS_NON_SYMMETRIC_COMPLEX ,rowIndex, nRows, nCols, columns, nNonZeros ) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999 &lt;BR /&gt;  &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;! Reorder the matrix &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt; error = dss_reorder(handle, MKL_DSS_DEFAULTS, perm) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999 &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;! Factor the matrix &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt; error = dss_factor_complex(handle, MKL_DSS_POSITIVE_DEFINITE, values) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS) GOTO 999  &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt;! Get the solution vector &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt; error = dss_solve_complex(handle,MKL_DSS_DEFAULTS,rhs, nRhs, solution) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999 &lt;BR /&gt; !--------------------------------------------------------------------------- &lt;BR /&gt;! Deallocate solver storage &lt;BR /&gt;!--------------------------------------------------------------------------- &lt;BR /&gt; error = dss_delete(handle, MKL_DSS_DEFAULTS) &lt;BR /&gt; IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999 &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 999 WRITE(*,*) "Solver returned error code ", error &lt;BR /&gt;.................................................................................................................................................................................................&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also I have set perm()=0 and I have tried options MKL_DSS_DEFINITE and MKL_DSS_INDEFINITE&lt;BR /&gt;&lt;BR /&gt;I do not know which routine is crashed since I receive the message imediatly.&lt;BR /&gt;&lt;BR /&gt;P.S. After correcting an error in a matrix element I do not receive any more "Solver returned error code 0", but only the second case. &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Panayotis&lt;BR /&gt;</description>
      <pubDate>Fri, 14 May 2010 05:00:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820321#M4673</guid>
      <dc:creator>pkalozoum</dc:creator>
      <dc:date>2010-05-14T05:00:49Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820322#M4674</link>
      <description>&lt;P&gt;If you solve non-symmetric system, you cannot use the MKL_DSS_POSITIVE_DEFINITE option. Anyway, seems to me, the problem is in input matrix.&lt;/P&gt;&lt;P&gt;Could you localize the crash? For example, insert before each &lt;B&gt;call dss_***&lt;/B&gt; the &lt;B&gt;write(*,*)dss_***'&lt;/B&gt;. If crash happens in dss_define_structure() or dss_reorder() then the problem can be in arrays rowIndex(),columns(). If dss_factor_complex() crashes, so values() could be a reason of it. &lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2010 09:33:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820322#M4674</guid>
      <dc:creator>Sergey_Solovev__Inte</dc:creator>
      <dc:date>2010-05-14T09:33:29Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820323#M4675</link>
      <description>Panayotis,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It will be better if you give us the test case whichreproducesthe problem.&lt;/DIV&gt;&lt;DIV&gt;You can use the private thread if there is any confidential issue.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2010 09:44:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820323#M4675</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-14T09:44:08Z</dc:date>
    </item>
    <item>
      <title>dss problem with complex matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820324#M4676</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;I managed to implenent the DSS solver and it seems to work fine. But I have a question. I run the same problem using simply the routine &lt;B&gt;ZGESV &lt;/B&gt;and gives almost identical results with the DSS. Ofcourse DSS is about 15 times faster. Is this normal or DSS should be more accurate? &lt;BR /&gt;Moreover, for large values of a specific parameter which divides positive and negative exponents in EXP() the program returns NaN. Could this happen because the problem becomes ill-conditioned? Should in a case like that DSS give better results than ZGESV? And last... is there another solver which would deal better with an ill-conditioned problem (pardiso, ISS etc)? &lt;BR /&gt;&lt;BR /&gt;thank you very much&lt;BR /&gt;&lt;BR /&gt;Panayotis &lt;BR /&gt;</description>
      <pubDate>Sun, 16 May 2010 22:18:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dss-problem-with-complex-matrix/m-p/820324#M4676</guid>
      <dc:creator>pkalozoum</dc:creator>
      <dc:date>2010-05-16T22:18:41Z</dc:date>
    </item>
  </channel>
</rss>

