<?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 Compilation error with -fast on AMD Ryzen 9 9900X using ifx in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712241#M176797</link>
    <description>&lt;P&gt;On a host with an AMD Ryzen 9 9900X CPU (Zen 5 architecture), compiling a Fortran 90 code with the -fast option raises a compilation error: "Unknown target CPU 'native'." The compilation works fine without this option.&lt;/P&gt;&lt;P&gt;As a workaround, I'm currently using -O3 -march=znver5 instead, which resolves the issue.&lt;/P&gt;&lt;P&gt;Is this a known issue for ifx on AMD Ryzen platforms, specifically with Zen 5 architecture?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System Information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;CPU: AMD Ryzen 9 9900X 12-Core Processor&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Operating System: Ubuntu 24.04&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Compiler Version: ifx (IFX) 2025.2.1 20250806&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello.f90:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;program&lt;/SPAN&gt;&lt;/SPAN&gt; hello_world
  &lt;SPAN class=""&gt;implicit&lt;/SPAN&gt; &lt;SPAN class=""&gt;none&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;print&lt;/SPAN&gt; *, &lt;SPAN class=""&gt;"Hello, World!"&lt;/SPAN&gt;
&lt;SPAN class=""&gt;end&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;program&lt;/SPAN&gt;&lt;/SPAN&gt; hello_world&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Bash:&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;ifx -fast -o hello.out hello.f90&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;hello.f90: error #5544: Unknown target CPU 'native'. Valid CPU targets: ...
compilation aborted for hello.f90 (code 1)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 09:59:53 GMT</pubDate>
    <dc:creator>hoshi</dc:creator>
    <dc:date>2025-08-28T09:59:53Z</dc:date>
    <item>
      <title>Compilation error with -fast on AMD Ryzen 9 9900X using ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712241#M176797</link>
      <description>&lt;P&gt;On a host with an AMD Ryzen 9 9900X CPU (Zen 5 architecture), compiling a Fortran 90 code with the -fast option raises a compilation error: "Unknown target CPU 'native'." The compilation works fine without this option.&lt;/P&gt;&lt;P&gt;As a workaround, I'm currently using -O3 -march=znver5 instead, which resolves the issue.&lt;/P&gt;&lt;P&gt;Is this a known issue for ifx on AMD Ryzen platforms, specifically with Zen 5 architecture?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System Information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;CPU: AMD Ryzen 9 9900X 12-Core Processor&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Operating System: Ubuntu 24.04&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Compiler Version: ifx (IFX) 2025.2.1 20250806&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello.f90:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;program&lt;/SPAN&gt;&lt;/SPAN&gt; hello_world
  &lt;SPAN class=""&gt;implicit&lt;/SPAN&gt; &lt;SPAN class=""&gt;none&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;print&lt;/SPAN&gt; *, &lt;SPAN class=""&gt;"Hello, World!"&lt;/SPAN&gt;
&lt;SPAN class=""&gt;end&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;program&lt;/SPAN&gt;&lt;/SPAN&gt; hello_world&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Bash:&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;ifx -fast -o hello.out hello.f90&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;hello.f90: error #5544: Unknown target CPU 'native'. Valid CPU targets: ...
compilation aborted for hello.f90 (code 1)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 09:59:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712241#M176797</guid>
      <dc:creator>hoshi</dc:creator>
      <dc:date>2025-08-28T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error with -fast on AMD Ryzen 9 9900X using ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712275#M176798</link>
      <description>&lt;P&gt;I don't have the answer to your question. However, concerning the -march option, '&lt;SPAN&gt;znver5' does not seem to be a valid processor name according to the compiler doc (&lt;A title="-march doc" href="https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/march.html" target="_self"&gt;https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/march.html&lt;/A&gt;&amp;nbsp;). I'm not sure what the compiler does if the processor name is not recognized.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 12:40:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712275#M176798</guid>
      <dc:creator>MarcGrodent</dc:creator>
      <dc:date>2025-08-28T12:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error with -fast on AMD Ryzen 9 9900X using ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712303#M176803</link>
      <description>&lt;P&gt;-fast implies -xHost, which is the only -x option supporting execution on non-Intel processors.&amp;nbsp; I wrote the original code to support -xHost, using the CPUINFO instruction to look at instruction sets supported and selecting the best -march option to match that. I'm pretty sure that code was replaced some years ago with some that uses specific architecture names, and it probably hasn't been updated to account for Zen5.&lt;/P&gt;&lt;P&gt;It may be that the LLVM backend has its own knowledge of -march names, which is why explicitly specifying znver5 works.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 16:05:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1712303#M176803</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2025-08-28T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error with -fast on AMD Ryzen 9 9900X using ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1714124#M176974</link>
      <description>&lt;P class=""&gt;Thank you both for the&amp;nbsp; replies.&lt;/P&gt;&lt;P class=""&gt;I will continue to use the explicit "-03 -march=znver5" workaround for now.&lt;/P&gt;&lt;P class=""&gt;Your answers have been incredibly helpful. Thank you again for your insights.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Aug 2025 01:26:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compilation-error-with-fast-on-AMD-Ryzen-9-9900X-using-ifx/m-p/1714124#M176974</guid>
      <dc:creator>hoshi</dc:creator>
      <dc:date>2025-08-30T01:26:20Z</dc:date>
    </item>
  </channel>
</rss>

