<?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:Linking against MKL with ifort &amp;quot;-assume nounderscore&amp;quot; fails to find symbols in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1552573#M35580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Gentle Reminder:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please let us know whether the provided information is helpful?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Aryan.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Dec 2023 10:17:47 GMT</pubDate>
    <dc:creator>AryanK_Intel</dc:creator>
    <dc:date>2023-12-11T10:17:47Z</dc:date>
    <item>
      <title>Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547799#M35506</link>
      <description>&lt;P&gt;I'm newly-building a program against MKL (I previously used local implementations of BLAS routines, but now want to use the Intel optimized ones).&amp;nbsp; A brief snippet of my modified routine contains the following code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  SUBROUTINE FOO
  USE :: BLAS95
  IMPLICIT NONE

  [...]

  REAL*4  KVEC(STOP-START+1,3), SPSI_CTHETA

  [...]
  CALL SCAL( KVEC(:, 2), SPSI_CTHETA )
  [...]
  END&lt;/LI-CODE&gt;&lt;P&gt;When I build the subroutine with "-assume nounderscore -qmkl=sequential" in ifort, then link with "$(MKLROOT)/lib/intel64/libmkl_intel_lp64.a $(MKLROOT)/lib/intel64/libmkl_sequential.a&amp;nbsp;$(MKLROOT)/lib/intel64/libmkl_core.a&amp;nbsp;$(MKLROOT)/lib/intel64/libmkl_blas95_lp64.a", I receive undefined references to "sscal_f95".&amp;nbsp; I can fix this by passing a flag to the linker to alias "sscal_f95=sscal_f95_".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a missing "!DEC ATTRIBUTES DEFAULT :: SSCAL_F95" (or something similar) in the MKL definition for the BLAS functions that would remove the effects of the "assume nounderscore" compiler argument during compilation?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:21:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547799#M35506</guid>
      <dc:creator>ereisch</dc:creator>
      <dc:date>2023-11-27T15:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547811#M35508</link>
      <description>&lt;P&gt;Do you realize that for the "-assume nounderscore" option to be applied consistently, you may need to recompile the source files from which BLAS95.mod was generated, before compiling your own Fortran source files that USE the module?&lt;/P&gt;&lt;P&gt;A different point, also to be checked: do the Linux MKL libraries support calling with and without underscore decoration?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:42:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547811#M35508</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-11-27T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547824#M35510</link>
      <description>&lt;P&gt;I was under the impression that the function decorations and attributes are all carried around in the *.mod file (this appears to be how the compiler's *.mod files work, such as ifestablish.mod, ieee_arithmetic.mod, etc.), so they are compatible with all compiler arguments without having to rebuild the module files with each compiler option change.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 16:01:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547824#M35510</guid>
      <dc:creator>ereisch</dc:creator>
      <dc:date>2023-11-27T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547843#M35511</link>
      <description>&lt;P&gt;What you said comes into force only when you (re)compile the source file .../Intel/oneAPI/mkl/latest/include/mkl_blas.f90 with the non-default compiler options that you chose. If you did not recompile mkl_blas.f90, the module file is that supplied with the MKL installer, and that .mod file does not correspond to "-assume nounderscore".&lt;/P&gt;&lt;P&gt;When you build using precompiled objects and libraries, using "-assume nounderscore" may result in linker errors (unsatisfied externals) unless the precompiled objects contain both versions (with and without underscore) of the exported symbols.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 16:26:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1547843#M35511</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-11-27T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1550149#M35532</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Gentle Reminder:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;We haven't heard back from you. Could you please let us know whether the provided information is helpful?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Aryan.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 10:17:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1550149#M35532</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-12-11T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Re:Linking against MKL with ifort "-assume nounderscore" fails to find symbols</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1552573#M35580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Gentle Reminder:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please let us know whether the provided information is helpful?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Aryan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Dec 2023 10:17:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-against-MKL-with-ifort-quot-assume-nounderscore-quot/m-p/1552573#M35580</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-12-11T10:17:47Z</dc:date>
    </item>
  </channel>
</rss>

