<?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 C or Fortran? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-or-Fortran/m-p/848858#M6426</link>
    <description>So, I intend to write a scientific program based on MKL.&lt;BR /&gt;The main question I have is: do I use C or Fortran? &lt;BR /&gt;I'm mainly concerned with performance, but I would like to hear general pros and cons from the experienced.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Herbert&lt;BR /&gt;</description>
    <pubDate>Sat, 30 Jun 2007 12:14:57 GMT</pubDate>
    <dc:creator>hcgeorg</dc:creator>
    <dc:date>2007-06-30T12:14:57Z</dc:date>
    <item>
      <title>C or Fortran?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-or-Fortran/m-p/848858#M6426</link>
      <description>So, I intend to write a scientific program based on MKL.&lt;BR /&gt;The main question I have is: do I use C or Fortran? &lt;BR /&gt;I'm mainly concerned with performance, but I would like to hear general pros and cons from the experienced.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Herbert&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Jun 2007 12:14:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-or-Fortran/m-p/848858#M6426</guid>
      <dc:creator>hcgeorg</dc:creator>
      <dc:date>2007-06-30T12:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: C or Fortran?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-or-Fortran/m-p/848859#M6427</link>
      <description>If most of the time is spent in MKL functions, performance would be the same with either calling language, if direct low level function calls are used. With care, and use of extensions, Intel C++ can give full performance in its own code as well as in MKL.&lt;BR /&gt;MKL is more widely used with Intel Fortran than C. Intel has recognized this in the new Fortran Professional offerings which provide both in one package. &lt;BR /&gt;Current MKL with non-Intel compilers has the disadvantage that OpenMP can't be used in both the compiler and in MKL, because of the different OpenMP libraries. MKL serial libraries avoid this problem, but require any threading to be performed by the calling application.&lt;BR /&gt;BLAS calling conventions are more awkward in C than in Fortran. MKL provides the Fortran95 wrappers to clean it up, possibly with performance penalty. As far as I know, only gfortran provides options to compile MATMUL as ?GEMM calls. gfortran is supported with MKL only on linux (and Mac?).&lt;BR /&gt;For C, MKL provides fft wrappers to ease implementation, apparently with a performance penalty.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Jun 2007 13:50:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-or-Fortran/m-p/848859#M6427</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-06-30T13:50:54Z</dc:date>
    </item>
  </channel>
</rss>

