<?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 Quote:Fiona Z. (Intel) wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119225#M24871</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Fiona Z. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;For more f95 examples, please refer to examples under $MKLROOT/examples/examples_f95/lapack95/source/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;There are no HEEVD examples in the MKL Lapack95 examples. Perhaps the corrected test code in this post could be used for that purpose!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 10:53:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2017-05-31T10:53:00Z</dc:date>
    <item>
      <title>Fortran95 Interface causes segfault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119222#M24868</link>
      <description>&lt;P&gt;I am trying to use the zheevd or zheev with their Fortran95 interface:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program main
    use lapack95
    implicit none
    complex(8) :: H(2,2), w(2)

    H = 1d0
    call zheevd(H,w, 'V')
    write (*,*) H
    write (*,*) "######"
    write (*,*) w
end program main
&lt;/PRE&gt;

&lt;P&gt;which I compile with:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ifort test.f90 -o bla.x  ${MKLROOT}/lib/intel64/libmkl_blas95_lp64.a ${MKLROOT}/lib/intel64/libmkl_lapack95_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm -ldl  -I${MKLROOT}/include/intel64/lp64 -I${MKLROOT}/include
&lt;/PRE&gt;

&lt;P&gt;as suggested by the Link Line Adivsor. When I run this simple example I get:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;&amp;gt; $ ./bla.x                                                                              
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
bla.x              00000000016D7984  Unknown               Unknown  Unknown
libpthread-2.23.s  00007F083A8F6390  Unknown               Unknown  Unknown
bla.x              0000000000404257  Unknown               Unknown  Unknown
bla.x              0000000000403B41  Unknown               Unknown  Unknown
bla.x              00000000004039B2  Unknown               Unknown  Unknown
bla.x              000000000040392E  Unknown               Unknown  Unknown
libc-2.23.so       00007F083A02F830  __libc_start_main     Unknown  Unknown
bla.x              0000000000403829  Unknown               Unknown  Unknow&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How do I use the Fortran95 Interface correctly? The 77 interface is just to verbose for my liking.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 07:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119222#M24868</guid>
      <dc:creator>Matthias_R_</dc:creator>
      <dc:date>2017-05-31T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Two errors:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119223#M24869</link>
      <description>&lt;P&gt;Two errors:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1. The type of w should be real(8).&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2. You have called the F77 routine with the F95 argument list. Replace Line 7 by&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;call heevd(H,w, 'V')
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 09:23:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119223#M24869</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-05-31T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Hi Matthias,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119224#M24870</link>
      <description>&lt;P&gt;Hi Matthias,&lt;/P&gt;

&lt;P&gt;You used wrong calling for this function API, please refer to&amp;nbsp;&lt;A href="https://software.intel.com/en-us/mkl-developer-reference-fortran-heevd"&gt;https://software.intel.com/en-us/mkl-developer-reference-fortran-heevd&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For more f95 examples, please refer to examples under $MKLROOT/examples/examples_f95/lapack95/source/&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 09:24:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119224#M24870</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-05-31T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Quote:Fiona Z. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119225#M24871</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Fiona Z. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;For more f95 examples, please refer to examples under $MKLROOT/examples/examples_f95/lapack95/source/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;There are no HEEVD examples in the MKL Lapack95 examples. Perhaps the corrected test code in this post could be used for that purpose!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 10:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119225#M24871</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-05-31T10:53:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Fiona Z. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119226#M24872</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Fiona Z. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Matthias,&lt;/P&gt;

&lt;P&gt;You used wrong calling for this function API, please refer to&amp;nbsp;&lt;A href="https://software.intel.com/en-us/mkl-developer-reference-fortran-heevd"&gt;https://software.intel.com/en-us/mkl-developer-reference-fortran-heevd&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For more f95 examples, please refer to examples under $MKLROOT/examples/examples_f95/lapack95/source/&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I read this reference page multiple times, but I wasn't quite clear to me, that I had to drop the type letter and online I could only find examples for the 77 interface.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 10:57:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119226#M24872</guid>
      <dc:creator>Matthias_R_</dc:creator>
      <dc:date>2017-05-31T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Matthias, the format of the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119227#M24873</link>
      <description>&lt;P&gt;Matthias, the format of the MKL documentation can cause confusion in the beginning. For example, if you see&amp;nbsp;https://software.intel.com/en-us/mkl-developer-reference-fortran-heevd , under the Syntax title you see three example calls. The first two are for specific (i.e., F77 style) routines, whereas the third is for the F95 routine. The clue that that third call is for the F95 interface is the absence of type-indicators such as 's', 'd' among the initial characters of the routine name. To confirm what the clue may suggest, you have to scroll to the bottom of the page, &amp;nbsp;to the section "LAPACK 95 Interface Notes". This format is regularly used in the MKL documentation for Lapack95 routines.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 11:15:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran95-Interface-causes-segfault/m-p/1119227#M24873</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-05-31T11:15:19Z</dc:date>
    </item>
  </channel>
</rss>

