<?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: Need help using fortran 95 interfaces in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872624#M8624</link>
    <description>One more question: It is my understanding that the *.so library files are to be dynamically linked and the *.a are to be statically linked. Is this so? If it is the case, how does the linker know which one to use when I issue a command like &lt;BR /&gt;&lt;BR /&gt;ifort test.f90 -o test -L$MKLPATH -lmkl_ia32 -lguide -lpthread &lt;BR /&gt;&lt;BR /&gt;since the libguide has two versions?&lt;BR /&gt;&lt;BR /&gt;Also, I notice that libmkl_blas95.a doesn't have a .so counterpart. Does this mean that it cannot be dynamically linked?&lt;BR /&gt;&lt;BR /&gt;I'm sorry if these are stupid questions--I really am not experienced in these matters. Thank you for any help!&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Apr 2007 23:31:26 GMT</pubDate>
    <dc:creator>alexism</dc:creator>
    <dc:date>2007-04-02T23:31:26Z</dc:date>
    <item>
      <title>Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872623#M8623</link>
      <description>Hi everyone, &lt;BR /&gt; &lt;BR /&gt; I'm trying to use the fortran blas 95 interfaces. I haven't used BLAS or intel mkl before. I tried a little test program:&lt;BR /&gt;&lt;PRE&gt;program test&lt;BR /&gt;integer, parameter :: N=10&lt;BR /&gt;real :: x(N),y(N)&lt;BR /&gt;integer :: i&lt;BR /&gt;do i=1,10&lt;BR /&gt;   x(i)=2e0&lt;BR /&gt;   y(i)=1e0&lt;BR /&gt;enddo&lt;BR /&gt;res=sdot(x,y)&lt;BR /&gt;print*,'SDOT=',res&lt;BR /&gt;end program test&lt;BR /&gt;&lt;/PRE&gt; and then tried compiling it like so: &lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Times New Roman"&gt;ifort test.f90 -o test -L$MKLPATH -lmkl_blas95 -lmkl_lapack -lmkl_ia32 -lguide -lpthread&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;and then I get the message that it can't find &lt;FONT face="Times New Roman"&gt;-lmkl_blas95&lt;/FONT&gt;. I then copied over the &lt;FONT face="Times New Roman"&gt;libmkl_blas95.a&lt;/FONT&gt; file that was created when I built the interface according the the manual to the /mkl/8.1/lib/32/ directory where all the other library files are held. Compiling now works, but when I run the program I get the error&lt;BR /&gt;&lt;BR /&gt;"forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&gt;Stack trace terminated abnormally."&lt;BR /&gt;&lt;BR /&gt;I don't really understand how to link everything properly, and so any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2007 23:22:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872623#M8623</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2007-04-02T23:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872624#M8624</link>
      <description>One more question: It is my understanding that the *.so library files are to be dynamically linked and the *.a are to be statically linked. Is this so? If it is the case, how does the linker know which one to use when I issue a command like &lt;BR /&gt;&lt;BR /&gt;ifort test.f90 -o test -L$MKLPATH -lmkl_ia32 -lguide -lpthread &lt;BR /&gt;&lt;BR /&gt;since the libguide has two versions?&lt;BR /&gt;&lt;BR /&gt;Also, I notice that libmkl_blas95.a doesn't have a .so counterpart. Does this mean that it cannot be dynamically linked?&lt;BR /&gt;&lt;BR /&gt;I'm sorry if these are stupid questions--I really am not experienced in these matters. Thank you for any help!&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2007 23:31:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872624#M8624</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2007-04-02T23:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872625#M8625</link>
      <description>&lt;P&gt;You must include the blas95 interfaces in your source. Without interfaces, you are calling the f77 interface with no checking, so you are calling the f77 sdot with no length argument. The blas95 interfaces fix it up by using size intrinsic to pass the length, and they make your invocation of the dot function refer to the appropriate f77 function, according to the data type of your arguments. &lt;/P&gt;
&lt;P&gt;sdot would still be a direct call to the old style interface, and would not be checked unless you included the corresponding USE file.&lt;/P&gt;
&lt;P&gt;In the examples directory, there is an example ddotx.f90of double precision usage. You might try that, then make a single precision version of it. Note the USE lines, setting working precision to double (in the example case) and invoking the mklblas_95 interfaces.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2007 00:27:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872625#M8625</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-04-03T00:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872626#M8626</link>
      <description>&lt;PRE&gt;Use the mkl95_blas module and then compile with ...&lt;BR /&gt;&lt;BR /&gt;-I/opt/intel/mkl/include -L/opt/intel/mkl/lib/32/ -lmkl_blas95 -lmkl&lt;BR /&gt;&lt;BR /&gt;program test&lt;BR /&gt;use mkl95_blas&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure that the include path contains the needed modules (mkl95_blas.mod, mkl95_precision.mod etc.)&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Apr 2007 02:49:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872626#M8626</guid>
      <dc:creator>Tabrez_Ali</dc:creator>
      <dc:date>2007-04-03T02:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872627#M8627</link>
      <description>Thank you for the replies. I finally got it to work (I had to copy the libmkl_blas95.a file to the /lib/32 folder).&lt;STRIKE&gt; Is the -I/opt/intel/mkl/include necessary? It works without this option.&lt;/STRIKE&gt; &lt;BR /&gt;&lt;BR /&gt;One more question: when I built the mkl interface, does it make a difference if I compile with optimizations (like the -fast switch). It shoudln't right? &lt;BR /&gt;&lt;BR /&gt;Once again, thank you very much for helping, &lt;BR /&gt;&lt;BR /&gt;sincerely,&lt;BR /&gt;&lt;BR /&gt;Alexis&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2007 20:58:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872627#M8627</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2007-04-03T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872628#M8628</link>
      <description>No it should not as you are only building the interface.</description>
      <pubDate>Tue, 03 Apr 2007 23:05:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872628#M8628</guid>
      <dc:creator>Tabrez_Ali</dc:creator>
      <dc:date>2007-04-03T23:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using fortran 95 interfaces</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872629#M8629</link>
      <description>That's what I thought. Now I'm ready to use intel MKL, except that my automatic makefile generator script doesn't seem to work anymore (I was using a perl script called fmkmf). Does anyone know of another good one that will work to make makefiles with intel MKL?&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Apr 2007 00:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Need-help-using-fortran-95-interfaces/m-p/872629#M8629</guid>
      <dc:creator>alexism</dc:creator>
      <dc:date>2007-04-04T00:06:40Z</dc:date>
    </item>
  </channel>
</rss>

