<?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 Re: dsyevr in fortran, MKL not working in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881598#M9614</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/409757"&gt;leekeanloon&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;[cpp]      integer i,j,k,toff
      double precision , dimension(0:17):: ev
      double precision , dimension(1:18,1:18):: evect
      double precision , dimension(0:17,0:17):: ttt
      double precision work(18*64),dlamch
      integer iwork(18*10), status, support(2*18)
      
      toff=18
      do 120 i=0, toff-1
         do 120 j=9, toff-1
          ttt(i,j)=1.d0
          write(*,*) i,j,ttt(i,j)
 120  continue
 
      call dsyevr('v','a','l',toff,ttt,toff,0.d0,0.d0,0,0,dlamch('s'),
     1     i,ev,evect,toff,support,work,toff*64,iwork,toff*10,status)
[/cpp]&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;I compile with the option as followed:&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -c test.f -o test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -o honeyN3L80 test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;/P&gt;
&lt;P&gt;i keep on getting segmentation fault. However, when I compile using the option -lblas -llapack, it work perfectly except that the program is much slower. Can anyone help me? Thanks.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;i solve the problem already. Linking is one of the problem. Also, when I change the 'v', 'a', etc to uppercase, the program the work perfectly. Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2008 08:42:02 GMT</pubDate>
    <dc:creator>leekeanloon</dc:creator>
    <dc:date>2008-12-17T08:42:02Z</dc:date>
    <item>
      <title>dsyevr in fortran, MKL not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881595#M9611</link>
      <description>&lt;PRE&gt;[cpp]      integer i,j,k,toff
      double precision , dimension(0:17):: ev
      double precision , dimension(1:18,1:18):: evect
      double precision , dimension(0:17,0:17):: ttt
      double precision work(18*64),dlamch
      integer iwork(18*10), status, support(2*18)
      
      toff=18
      do 120 i=0, toff-1
         do 120 j=9, toff-1
          ttt(i,j)=1.d0
          write(*,*) i,j,ttt(i,j)
 120  continue
 
      call dsyevr('v','a','l',toff,ttt,toff,0.d0,0.d0,0,0,dlamch('s'),
     1     i,ev,evect,toff,support,work,toff*64,iwork,toff*10,status)
[/cpp]&lt;/PRE&gt;
&lt;P&gt;I compile with the option as followed:&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -c test.f -o test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -o honeyN3L80 test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;/P&gt;
&lt;P&gt;i keep on getting segmentation fault. However, when I compile using the option -lblas -llapack, it work perfectly except that the program is much slower. Can anyone help me? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2008 03:46:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881595#M9611</guid>
      <dc:creator>leekeanloon</dc:creator>
      <dc:date>2008-12-16T03:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: dsyevr in fortran, MKL not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881596#M9612</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;it seems that your problem dealt with the new linkage model in MKL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;The linkage model of MKL was changed since MKL v.10 ( all info about linking your application with MKL, you can find&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;in userguide ) .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;Please try to use for linking em64t based lapack functions, the following lines as an example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;ifort&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;-w test.f /opt/intel/mkl/&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="color: black;"&gt; 10.0.4.023&lt;/SPAN&gt;/lib/em64t/libmkl_intel_lp64.a -Wl,--start-group /opt/intel/mkl/10.0.4.023/lib/em64t/libmkl_intel_thread.a&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;/opt/intel/mkl/10.0.4.023/lib/em64t/libmkl_core.a -Wl,--end-group -L/opt/intel/mkl/10.0.4.023/lib/em64t -lguide &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;-lpthread&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;-o test.out&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;--Gennady&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2008 08:17:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881596#M9612</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-12-16T08:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: dsyevr in fortran, MKL not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881597#M9613</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/409757"&gt;leekeanloon&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;[cpp]      integer i,j,k,toff
      double precision , dimension(0:17):: ev
      double precision , dimension(1:18,1:18):: evect
      double precision , dimension(0:17,0:17):: ttt
      double precision work(18*64),dlamch
      integer iwork(18*10), status, support(2*18)
      
      toff=18
      do 120 i=0, toff-1
         do 120 j=9, toff-1
          ttt(i,j)=1.d0
          write(*,*) i,j,ttt(i,j)
 120  continue
 
      call dsyevr('v','a','l',toff,ttt,toff,0.d0,0.d0,0,0,dlamch('s'),
     1     i,ev,evect,toff,support,work,toff*64,iwork,toff*10,status)
[/cpp]&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;I compile with the option as followed:&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -c test.f -o test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -o honeyN3L80 test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;/P&gt;
&lt;P&gt;i keep on getting segmentation fault. However, when I compile using the option -lblas -llapack, it work perfectly except that the program is much slower. Can anyone help me? Thanks.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;I now dynamically link the library through&lt;/P&gt;
&lt;P&gt;-L/opt/intel/mkl/10.0.4.023/lib/em64t -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread&lt;BR /&gt;. It execute the subroutine dsyevr, but now it alert me that 'Parameter 6 was incorrect on entry to DSYEVR&lt;BR /&gt;', but I have checked the manual for dsyever and it should be correct. i do not get where the error comes from. thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2008 08:08:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881597#M9613</guid>
      <dc:creator>leekeanloon</dc:creator>
      <dc:date>2008-12-17T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: dsyevr in fortran, MKL not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881598#M9614</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/409757"&gt;leekeanloon&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;[cpp]      integer i,j,k,toff
      double precision , dimension(0:17):: ev
      double precision , dimension(1:18,1:18):: evect
      double precision , dimension(0:17,0:17):: ttt
      double precision work(18*64),dlamch
      integer iwork(18*10), status, support(2*18)
      
      toff=18
      do 120 i=0, toff-1
         do 120 j=9, toff-1
          ttt(i,j)=1.d0
          write(*,*) i,j,ttt(i,j)
 120  continue
 
      call dsyevr('v','a','l',toff,ttt,toff,0.d0,0.d0,0,0,dlamch('s'),
     1     i,ev,evect,toff,support,work,toff*64,iwork,toff*10,status)
[/cpp]&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;I compile with the option as followed:&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -c test.f -o test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;BR /&gt;ifort -O3 -fno-alias -heap-arrays 10 -align -132 -u -w90 -o honeyN3L80 test.o -L/usr/local/intel/mkl/10.0.4.023/lib/em64t -lguide -lmkl -lmkl_lapack -lpthread&lt;/P&gt;
&lt;P&gt;i keep on getting segmentation fault. However, when I compile using the option -lblas -llapack, it work perfectly except that the program is much slower. Can anyone help me? Thanks.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;i solve the problem already. Linking is one of the problem. Also, when I change the 'v', 'a', etc to uppercase, the program the work perfectly. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2008 08:42:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dsyevr-in-fortran-MKL-not-working/m-p/881598#M9614</guid>
      <dc:creator>leekeanloon</dc:creator>
      <dc:date>2008-12-17T08:42:02Z</dc:date>
    </item>
  </channel>
</rss>

