<?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: How to detect installed Intel Visual Fortran version numbers programmatically ? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365107#M160397</link>
    <description>&lt;P&gt;I am not sure that this is what you want, but you can use the intrinsic routines compiler_version() and compiler_options() to get the information on the compiler that was used to build the program. Here is an example of he information you get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compiler version: &lt;BR /&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000&lt;BR /&gt;Compiler options: &lt;BR /&gt;/debug&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 10:44:46 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2022-03-02T10:44:46Z</dc:date>
    <item>
      <title>How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365100#M160396</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;On Windows, I would like to retrieve programmatically (python or any other programming language) the version numbers of Intel Visual Fortran installed on my computer.&lt;BR /&gt;I know from Visual Studio (Tools/Options/Intel Compilers and Tools/Visual Fortran/Compilers) that I have these 3 versions:&lt;/P&gt;
&lt;P&gt;12.1.5.344&lt;BR /&gt;15.0.4.211&lt;BR /&gt;19.1.3.311&lt;/P&gt;
&lt;P&gt;The environment variables tell me only the install directories of these 3 versions&lt;/P&gt;
&lt;P&gt;IFORT_COMPILER12=C:\Program Files (x86)\Intel\Composer XE 2011 SP1\ ==&amp;gt; corresponds to version 12.1.5.344&lt;BR /&gt;IFORT_COMPILER15=C:\Program Files (x86)\IntelComposer XE 2015\=&amp;gt; corresponds to version 15.0.4.211&lt;BR /&gt;IFORT_COMPILER20=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.4.311\windows\ ==&amp;gt; corresponds to version 19.1.3.311&lt;/P&gt;
&lt;P&gt;I made several attempts (windows registry, fsupport.txt file, etc.) but nothing very conclusive&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:37:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365100#M160396</guid>
      <dc:creator>Lambdalous</dc:creator>
      <dc:date>2022-03-02T10:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365107#M160397</link>
      <description>&lt;P&gt;I am not sure that this is what you want, but you can use the intrinsic routines compiler_version() and compiler_options() to get the information on the compiler that was used to build the program. Here is an example of he information you get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compiler version: &lt;BR /&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000&lt;BR /&gt;Compiler options: &lt;BR /&gt;/debug&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:44:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365107#M160397</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2022-03-02T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365124#M160400</link>
      <description>&lt;P&gt;Thank you for your answer. But indeed I would like to know all the versions installed on the computer, not the information on the compiler that was used to build a specific program. &lt;/P&gt;
&lt;P&gt;And I would like to find them via computer code (&lt;SPAN&gt;programmatically).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So in my case I would like a code that returns these 3 values:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;12.1.5.344&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;15.0.4.211&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;19.1.3.311&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 12:36:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365124#M160400</guid>
      <dc:creator>Lambdalous</dc:creator>
      <dc:date>2022-03-02T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365125#M160401</link>
      <description>&lt;P&gt;I am not sure why you would want to do that.&amp;nbsp; You could scan your drives looking for ifort.exe and then either get the version.info from the file or parse the folder names.... There may be smarter ways, the folder roots used by OneApi and by previous versions of ifort are different BTW.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 12:38:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365125#M160401</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2022-03-02T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365127#M160402</link>
      <description>&lt;P&gt;What you could do - in a small Fortran program - is construct the name of an environment variable, IFORT_COMPILERxx, where xx runs from, say, 10 to 30, get the value of that environment variable via get_environment_variable() and try to run the compiler, which would be located in %IFORT_COMPILERxx%\bin\intel64 (or similar) via execute_command_line(). Redirect the output to a file and parse the first line.&lt;/P&gt;
&lt;P&gt;Whether that is an exhaustive search and whether there are variations in the latter part of the path that you need to take care of, I do not know. The versions I checked on my system seem to use this pattern.&lt;/P&gt;
&lt;P&gt;Of course, you can do this with Python or most other programming languages as well.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 12:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365127#M160402</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2022-03-02T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect installed Intel Visual Fortran version numbers programmatically ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365136#M160403</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/66560"&gt;@andrew_4619&lt;/a&gt;&amp;nbsp;: The purpose is to let the user choose (in a GUI) the version of Intel Fortran to use to compile some files (see attached image). But I could not find the exact versions installed.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/75329"&gt;@Arjen_Markus&lt;/a&gt;&amp;nbsp;:&amp;nbsp;Your solution seems to work! Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you all for your answers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:27:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-detect-installed-Intel-Visual-Fortran-version-numbers/m-p/1365136#M160403</guid>
      <dc:creator>Lambdalous</dc:creator>
      <dc:date>2022-03-02T13:27:58Z</dc:date>
    </item>
  </channel>
</rss>

