<?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: segfaults with dstemr in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886150#M10033</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Mark,&lt;BR /&gt;It seems to me this is the error with dstemv implementaion. We need to check more carefully the problem on our side.&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Nov 2009 10:41:03 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2009-11-13T10:41:03Z</dc:date>
    <item>
      <title>segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886149#M10032</link>
      <description>I have run into segfaults when using dstemr and wonder if anyone else has seen similar problems. I can produce the error with a trivial example in either fortran or C++. Below is a fortran example:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]program test_stemr

implicit none
integer i,j,k,il,iu
integer size,info,nev,nzc,lwork,liwork

real(kind=8) vl,vu,abstol
real(kind=8), allocatable :: D(:),E(:),Lambda(:),Phi(:,:),work(:)
integer, allocatable :: iwork(:),isuppz(:)
logical tryac

size = 100
write(*,*) "working on size = ",size
allocate(D(size),E(size))
do i=1,size
  D(i) = i
  E(i) = 0.0
end do
allocate(Lambda(size),Phi(size,size),isuppz(2*size))
liwork = 10*size
lwork = 18*size
allocate(iwork(liwork),work(lwork))

nzc = size
tryac = .true.
vl = 1.99
vu = 18.1
il = 0
iu = 0
call dstemr("V","V",size,D,E,vl,vu,il,iu,nev,Lambda,Phi,size,nzc, &amp;amp;
            isuppz,tryac,work,lwork,iwork,liwork,info)

write(*,*) "after stemr"
write(*,*) 'info   = ',info
write(*,*) 'nzc    = ',nzc
write(*,*) 'nev    = ',nev
write(*,*) 'eigenvalues are: ',(lambda(i),i=1,nev)
write(*,*)

deallocate(work,iwork,isuppz,Lambda,Phi,D,E)

write(*,*) "done with test_stemr"

end program test_stemr[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;When I compile this using v11.1 (056) of the Intel compilers on an x86_64 machine (ie, ifort tes.tf90 -mkl) and run it, I get the following output:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp] working on size =          100
 after stemr
 info   =            0
 nzc    =            2
 nev    =           17
 eigenvalues are:    2.00000000000000        3.00000000000000     
   4.00000000000000        5.00000000000000        6.00000000000000     
   7.00000000000000        8.00000000000000        9.00000000000000     
   10.0000000000000        11.0000000000000        12.0000000000000     
   13.0000000000000        14.0000000000000        15.0000000000000     
   16.0000000000000        17.0000000000000        18.0000000000000     
 
 done with test_stemr
Segmentation fault
[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;The segfault is occurring at the very end of the program. In more real world cases, the segfaults occur after calling dstemr, but before the final exit. If I change the range argument (argument #2) from "V" to "A", I never have any problems. I get the same problem if I use dstegr in place of dstemr, which is unsurprising this dstegr is just a wrapper around dstemr. I also notice that the input variable nzc is changed, where the description of the routine lists it as input, not input/output or output.&lt;BR /&gt;&lt;BR /&gt;Is anyone using dstemr with the "V" option for the range and having any luck? Searching around I have found very little discussion of dstemr/dstegr in any context and would appreciate hearing from any users/&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark Muller</description>
      <pubDate>Thu, 12 Nov 2009 22:34:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886149#M10032</guid>
      <dc:creator>Mark_Muller</dc:creator>
      <dc:date>2009-11-12T22:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886150#M10033</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Mark,&lt;BR /&gt;It seems to me this is the error with dstemv implementaion. We need to check more carefully the problem on our side.&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2009 10:41:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886150#M10033</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-11-13T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886151#M10034</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hi Mark,&lt;BR /&gt;&lt;BR /&gt;Yes this is the problem dealt with lp64 interfaces. We will fix it asap.&lt;BR /&gt;As a temporarily workaround rebuild your application with ilp64 libraries.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Nov 2009 08:00:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886151#M10034</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-11-16T08:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886152#M10035</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&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; Hi Mark,&lt;BR /&gt;&lt;BR /&gt;Yes this is the problem dealt with lp64 interfaces. We will fix it asap.&lt;BR /&gt;As a temporarily workaround rebuild your application with ilp64 libraries.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the info. Nice to know it isn't just me.&lt;BR /&gt;&lt;BR /&gt;I am having some trouble using the ilp64 libraries. With Fortran, it looks like everything works by doing:&lt;BR /&gt;&lt;BR /&gt;ifort -integer-size 64 -c test.f90&lt;BR /&gt;ifort -integer-size 64 test.o /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_ilp64.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_ilp64.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_thread.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_core.a&lt;BR /&gt;&lt;BR /&gt;C++ as been giving me problems. I don't see a way with the C++ compiler to make the default int 64 bits. Am I missing something? Or should I just put in a conversion of int to mkl_int64 in everyone of my lapack/blas wrappers?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Mark Muller&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Nov 2009 20:34:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886152#M10035</guid>
      <dc:creator>Mark_Muller</dc:creator>
      <dc:date>2009-11-16T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886153#M10036</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/446514"&gt;Mark Muller&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;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&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; Hi Mark,&lt;BR /&gt;&lt;BR /&gt;Yes this is the problem dealt with lp64 interfaces. We will fix it asap.&lt;BR /&gt;As a temporarily workaround rebuild your application with ilp64 libraries.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the info. Nice to know it isn't just me.&lt;BR /&gt;&lt;BR /&gt;I am having some trouble using the ilp64 libraries. With Fortran, it looks like everything works by doing:&lt;BR /&gt;&lt;BR /&gt;ifort -integer-size 64 -c test.f90&lt;BR /&gt;ifort -integer-size 64 test.o /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_ilp64.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_ilp64.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_intel_thread.a /opt/intel/Compiler/11.1/056/mkl/lib/em64t/libmkl_core.a&lt;BR /&gt;&lt;BR /&gt;C++ as been giving me problems. I don't see a way with the C++ compiler to make the default int 64 bits. Am I missing something? Or should I just put in a conversion of int to mkl_int64 in everyone of my lapack/blas wrappers?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Mark Muller&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Mark,&lt;BR /&gt;for compiling iLP64 Interfaces by C/C++ compiler please use /DMKL_ILP64 option.&lt;BR /&gt;for more info, refer to the Users's Guide, chapter 3.&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2009 05:35:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886153#M10036</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-11-17T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: segfaults with dstemr</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886154#M10037</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/334681"&gt;Gennady Fedorov (Intel)&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;BR /&gt;Mark,&lt;BR /&gt;for compiling iLP64 Interfaces by C/C++ compiler please use /DMKL_ILP64 option.&lt;BR /&gt;for more info, refer to the Users's Guide, chapter 3.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Hello Mark,&lt;BR /&gt;Intel MKL 10.2 Update 3 is now available.&lt;BR /&gt;The problem discussed into this tread has been fixed into this update. &lt;BR /&gt;Please see the &lt;STRONG&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=70747"&gt;Intel MKL 10.2 Update 3 is now available&lt;/A&gt;&lt;/STRONG&gt; announce. You can find there the link to the Intel registration center to download. Could you please let us know if the problem is still exists?&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2009 15:36:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/segfaults-with-dstemr/m-p/886154#M10037</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-12-22T15:36:35Z</dc:date>
    </item>
  </channel>
</rss>

