<?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: Preprocessor directives in ifx in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1549262#M169623</link>
    <description>&lt;P&gt;Can you please ask your question on &lt;A href="https://community.intel.com/t5/Intel-HPC-Toolkit/bd-p/oneapi-hpc-toolkit" target="_blank" rel="noopener"&gt;the HPC Toolkit Forum&lt;/A&gt;? They work on IMPI issues.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 17:53:23 GMT</pubDate>
    <dc:creator>Barbara_P_Intel</dc:creator>
    <dc:date>2023-11-30T17:53:23Z</dc:date>
    <item>
      <title>Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1504678#M167236</link>
      <description>&lt;P&gt;The following types of preprocessor directives fail in ifx, while it is valid in ifort and gfortran:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program test_fpp
    implicit none
#ifdef PRE_PROC_DIR
    write(*, *) "Version : ", PRE_PROC_DIR
#endif
end program test_fpp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifort:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifort -DPRE_PROC_DIR=\""0.1.0 ifx-test"\" -fpp test_fpp.f90 ; ./a.out
 Version : 0.1.0 ifx-test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ifx:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -DPRE_PROC_DIR=\""0.1.0 ifx-test"\" -fpp test_fpp.f90 ; ./a.out 
/tmp/ifx05354667172WKmlC/ifx1ycjS6.i90: catastrophic error: Internal Compiler Error: Only one file name allowed on command line
compilation aborted for test_fpp.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 05:30:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1504678#M167236</guid>
      <dc:creator>Phy_Soham</dc:creator>
      <dc:date>2023-07-14T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1504813#M167239</link>
      <description>&lt;P&gt;Looks like command line parsing issue. Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ifx -DPRE_PROC_DIR&lt;/SPAN&gt;&lt;SPAN class=""&gt;=ABCDEFG&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-fpp test_fpp.f90 &lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; ./a.out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to see if it is an enquoted text (with arg delimiter) issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jim Dempsey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:33:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1504813#M167239</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2023-07-14T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re:Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1505592#M167269</link>
      <description>&lt;P&gt;Thank you for reporting this. &lt;/P&gt;&lt;P&gt;Here's a workaround: I took out the space, kept the shell escapes and ifx compiles it without error. It runs as expected. &lt;/P&gt;&lt;P&gt;As &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/63968"&gt;@jimdempseyatthecove&lt;/a&gt; said, it looks like a parsing error. The ICE is reported on the .i90 file, the file that has been preprocessed.&lt;/P&gt;&lt;P&gt;I filed a bug report, CMPLRLLVM-49553. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jul 2023 20:28:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1505592#M167269</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-07-17T20:28:59Z</dc:date>
    </item>
    <item>
      <title>Re:Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1505939#M167277</link>
      <description>&lt;P&gt;One of the compiler team found another workaround. Lead the macro definition with a letter; keep the space. For example, -DPRE_PROC_DIR="""V0.1.0 ifx-test"""&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:03:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1505939#M167277</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-07-18T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506136#M167281</link>
      <description>&lt;P&gt;Thanks for your response.&lt;BR /&gt;Following error occurred when I tried your recommendations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -DPRE_PROC_DIR="""V0.1.0 ifx-test""" -fpp test_fpp.f90 ; ./a.out
test_fpp.f90(8): error #5082: Syntax error, found REAL_CONSTANT '.1' when expecting one of: :: ) ( , : * &amp;lt;END-OF-STATEMENT&amp;gt; ; . % (/ + - [ ] /) . ** / 
// ...
    write(*, *) "Version : ", V0.1.0 ifx-test
--------------------------------^
compilation aborted for test_fpp.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -DPRE_PROC_DIR=ABCDEFG -fpp test_fpp.f90 ; ./a.out
test_fpp.f90(8): error #6404: This name does not have a type, and must have an explicit type.   [ABCDEFG]
    write(*, *) "Version : ", ABCDEFG
------------------------------^
compilation aborted for test_fpp.f90 (code 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 03:25:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506136#M167281</guid>
      <dc:creator>Phy_Soham</dc:creator>
      <dc:date>2023-07-19T03:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506157#M167282</link>
      <description>&lt;P&gt;The problem is no much the compiler, but the interference of the quoting rules. Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ifx -DPRE_PROC_DIR="\"V0.1.0 ifx-test\"" -fpp test_fpp.f90&lt;/LI-CODE&gt;&lt;P&gt;The double quotes are eliminated by the shell you use, so the preprocessor never sees any. The backslash escapes the ones around the string so that these ARE passed to the preprocessor. I tested this both on Windows and Linux :).&lt;/P&gt;&lt;P&gt;(I noticed one thing: the preprocessor is aware of literal strings, text in quotes is not replaced.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 06:38:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506157#M167282</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2023-07-19T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506181#M167284</link>
      <description>&lt;P&gt;Thanks, it works, although the definition must start with a letter.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 09:09:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1506181#M167284</guid>
      <dc:creator>Phy_Soham</dc:creator>
      <dc:date>2023-07-19T09:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1548825#M169568</link>
      <description>&lt;P&gt;I have a similar issue as above. I am trying to include compiler directives on a command line that starts with mpiifort (not ifort). There seems to be an issue with the spaces in the character strings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;mpiifort -c /Qipo /O2 /wrap-margin- -fpp -DGITHASH_PP="\"FDS-6.8.0-1034-gb2f9f39-master\"" -DGITDATE_PP="\"Wed Nov 29 10&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;:25:10 2023 -0500\"" -DBUILDDATE_PP="\"Wed 11/29/2023 11:39 AM\"" -DCOMPVER_PP="\""Intel ifort 2021.11.0"\"" -DWITH_MKL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/I"C:\Program Files (x86)\Intel\oneAPI\mkl\latest"\include ../../Source/func.f90&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mpifc.bat for the Intel(R) MPI Library 2021.11 for Windows*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Copyright Intel Corporation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.11.0 Build 20231010_&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Copyright (C) 1985-2023 Intel Corporation. All rights reserved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ifort: command line warning #10161: unrecognized source type 'Nov'; object file assumed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ifort: command line warning #10161: unrecognized source type '29'; object file assumed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ifort: command line warning #10161: unrecognized source type '10:25:10'; object file assumed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ifort: command line warning #10161: unrecognized source type '2023'; object file assumed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ifort: command line warning #10006: ignoring unknown option '/0500" -DBUILDDATE_PP=\Wed 11/29/2023 11:39 AM"'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;../../Source\func.f90(5966): error #5078: Unrecognized token '\' skipped&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WRITE(LU,'(A,A)') ' Revision : ',TRIM(\FDS-6.8.0-1034-gb2f9f39-master\)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;---------------------------------------------------^&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:43:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1548825#M169568</guid>
      <dc:creator>Kevin_McGrattan</dc:creator>
      <dc:date>2023-11-29T16:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1548830#M169569</link>
      <description>&lt;P&gt;I should add that my problems are on Windows using the Command Prompt. I run setvars.bat and that works fine. Also, everything works on linux with mpiifort and compiler directives.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:52:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1548830#M169569</guid>
      <dc:creator>Kevin_McGrattan</dc:creator>
      <dc:date>2023-11-29T16:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1549262#M169623</link>
      <description>&lt;P&gt;Can you please ask your question on &lt;A href="https://community.intel.com/t5/Intel-HPC-Toolkit/bd-p/oneapi-hpc-toolkit" target="_blank" rel="noopener"&gt;the HPC Toolkit Forum&lt;/A&gt;? They work on IMPI issues.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 17:53:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1549262#M169623</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-11-30T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1617165#M173046</link>
      <description>&lt;P&gt;This issue is fixed in the 2025.0 ifx release.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 23:10:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1617165#M173046</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2024-07-22T23:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor directives in ifx</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1617235#M173051</link>
      <description>&lt;P&gt;Prior to getting the 2025.0 fix. As a work around, mpiifort ... executes mpiifort.bat, which calls mpifc.bat, which then calls ifort.exe (or maybe ifx.exe).&lt;/P&gt;&lt;P&gt;In order to pass arguments with spaces, you may require an additional quote/enquote around those arguments. It looks like you have two, you may need three.&lt;/P&gt;&lt;P&gt;... "\"\"Wed 11...\"\"" ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 02:43:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Preprocessor-directives-in-ifx/m-p/1617235#M173051</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2024-07-23T02:43:11Z</dc:date>
    </item>
  </channel>
</rss>

