<?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 ifort:  MKL function DSYEVR is not working in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994341#M18207</link>
    <description>Supposing that you are concerned about data types (a reasonable concern), &lt;BR /&gt;include 'mkl_lapack.fi'&lt;BR /&gt;or&lt;BR /&gt;use lapack&lt;BR /&gt;would enable the compiiler to check those.&lt;BR /&gt;You must also pay attention to values.&amp;nbsp; You have set leading dimension of z to n but you pass n-1 in ldz.&amp;nbsp; The reason for support of a variable is to accept a z array defined larger than necessary, which doesn't appear to be your case; the subroutine apparently sees that you gave it too small a value.&lt;BR /&gt;You could see the expected argument checks in the &lt;A href="http://www.netlib.org/lapack/double/dsyevr.f"&gt;reference source&lt;/A&gt;.</description>
    <pubDate>Wed, 29 Aug 2012 14:38:03 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2012-08-29T14:38:03Z</dc:date>
    <item>
      <title>ifort:  MKL function DSYEVR is not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994340#M18206</link>
      <description>&lt;P&gt;Hi, I am new using MKL and using a lapack subroutine, I get a run-time-error &amp;nbsp;related to incorrect parameter on entry to function. &amp;nbsp;I have compiled in these formsifort -L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64/lib/ -I/opt/intel/composer_xe_2011_sp1.10.319/mkl/include/intel64/ilp64/ -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lmkl_sequential -CB -openmp *.f90 -o x_exeand alsoifort -CB -openmp -c *.f90ifort -L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64/lib/libmkl_intel_lp64.a -I/opt/intel/composer_xe_2011_sp1.10.319/mkl/include/intel64/ilp64/ -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lmkl_sequential -CB -openmp *.o -o x_exeIn both cases I recieve the error&amp;nbsp;MKL ERROR: Parameter 15 was incorrect on entry to DSYEVRforrtl: severe (174): SIGSEGV, segmentation fault occurredImage &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Routine &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Line &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Source &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;x_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000043765D &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000436DFE &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000040BFD8 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000406AA1 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000405BCB &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000403FAC &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownlibc.so.6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00007F4AF0805C4D &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknownx_exe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000403EA9 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;UnknownBut the parameter 15 is&amp;nbsp;ldz which, as I found in MKL manual, should be integer.&amp;nbsp;From MKL Manual&amp;gt;&amp;gt; ldz INTEGER. The leading dimension of the output array z.&amp;gt;&amp;gt; Constraints:&amp;gt;&amp;gt; ldz ≥ 1 if jobz = 'N';&amp;gt;&amp;gt; ldz &amp;lt; max(1, n) if jobz = 'V'.&amp;nbsp;Subroutine where I call&amp;nbsp;dsyevr:subroutine diag_from_lapack(n,a,f,novec)use nrtypeimplicit none&amp;nbsp;integer, intent(in) :: n&amp;nbsp;real(dp), intent(inout) :: a(n,n), f(n)&amp;nbsp;logical, intent(in) :: novec&amp;nbsp;integer :: lda, il, iu, ldz, lwork, iwork(1), liwork, m, isuppz(2*n), info&amp;nbsp;real(dp) :: work(1), vl, vu, abstol, w(n), z(n,n)&amp;nbsp;character :: jobz, range_eigval, uplo! Input Parameters jobz = 'V'; if(novec) jobz = 'N' range_eigval = 'A' uplo = 'U' !n = nmatrix !a = Hcopy(n,n) lda = n vl = 0.0d0 vu = 100.0d0 il = 1 iu = n abstol = 1.0d-8 ldz = n-1 !work(1) lwork = -1 !iwork(1) liwork = -1! Output Parameters !m !w(n) !eigenvalues !z(n,n) !eigenvectors !isuppz(2*n) call dsyevr(jobz,range_eigval,uplo,n,a,lda,vl,vu,il,iu,abstol,m,w,z,ldz,isuppz,work,lwork,iwork,liwork,info) ! ! write the eigenvectors on the input matrix and the eigenvalues on the forces array f(:) = w(:) a(:,:) = z(:,:)returnendcan anyone help me?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2012 10:51:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994340#M18206</guid>
      <dc:creator>jesedugal</dc:creator>
      <dc:date>2012-08-29T10:51:01Z</dc:date>
    </item>
    <item>
      <title>ifort:  MKL function DSYEVR is not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994341#M18207</link>
      <description>Supposing that you are concerned about data types (a reasonable concern), &lt;BR /&gt;include 'mkl_lapack.fi'&lt;BR /&gt;or&lt;BR /&gt;use lapack&lt;BR /&gt;would enable the compiiler to check those.&lt;BR /&gt;You must also pay attention to values.&amp;nbsp; You have set leading dimension of z to n but you pass n-1 in ldz.&amp;nbsp; The reason for support of a variable is to accept a z array defined larger than necessary, which doesn't appear to be your case; the subroutine apparently sees that you gave it too small a value.&lt;BR /&gt;You could see the expected argument checks in the &lt;A href="http://www.netlib.org/lapack/double/dsyevr.f"&gt;reference source&lt;/A&gt;.</description>
      <pubDate>Wed, 29 Aug 2012 14:38:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994341#M18207</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-08-29T14:38:03Z</dc:date>
    </item>
    <item>
      <title>ifort:  MKL function DSYEVR is not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994342#M18208</link>
      <description>1. yes, Tim is right : &amp;nbsp; ldz &amp;nbsp;== n&lt;DIV&gt;2. please check how you link this example. You mixed lp64 and ILP64 interfaces - it is not correct&lt;/DIV&gt;&lt;DIV&gt;3. you don't link threading and sequentianal libraries at the one linking line&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;please check with &lt;A href="http://redfort-software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;Linking Adviser&lt;/A&gt; how to link your example properly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Aug 2012 15:52:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994342#M18208</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-08-29T15:52:56Z</dc:date>
    </item>
    <item>
      <title>ifort:  MKL function DSYEVR is not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994343#M18209</link>
      <description>If you want a quick linking solution, using all lp64 and threaded library, -mkl should work with ifort.&amp;nbsp; As Gennady pointed out, any specific requirements should be as advised by Linking Advisor.</description>
      <pubDate>Wed, 29 Aug 2012 16:00:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-MKL-function-DSYEVR-is-not-working/m-p/994343#M18209</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-08-29T16:00:38Z</dc:date>
    </item>
  </channel>
</rss>

