<?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: Code coverage when the main program is not a Fortran program in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231377#M152880</link>
    <description>&lt;P&gt;Did you call for_rtl_init_ / for_rtl_finish_ from your C++ code?&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/for-rtl-init.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/for-rtl-init.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 21:27:44 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2020-11-24T21:27:44Z</dc:date>
    <item>
      <title>Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231154#M152871</link>
      <description>&lt;P&gt;We want to register the code coverage for a large Fortran library. This works fine, using the relevant compile option (-Qprof-gen:srcpos), when we use the library via a Fortran main program. However, to get the full functionality of the library it needs to cooperate with another library and the infrastructure we have for that has been implemented in C++.&lt;/P&gt;&lt;P&gt;Unfortunately, it appears that in this constellation the files that register the code coverage are not written (the *.dyn files).&lt;/P&gt;&lt;P&gt;Some details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We run on Windows&lt;/LI&gt;&lt;LI&gt;The C++ compiler is MicroSoft Visual C++&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The question now is: how can we arrange for the program to produce its coverage files anyway or is that not possible?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 08:33:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231154#M152871</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2020-11-24T08:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231251#M152875</link>
      <description>&lt;P&gt;The Intel code coverage feature does not handle code not compiled by Intel compilers. You should be getting .dyn files for the Fortran code. I don't think there's a requirement that the main program be compiled by an Intel compiler, but I am not certain.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:32:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231251#M152875</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-11-24T14:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231261#M152878</link>
      <description>&lt;P&gt;Well, that is not what I infer from my experiments: I did one calculation with the C++ program as the driver, that produced no .dyn files. Repeating the same calculation with the Fortran program did produce them. I have also noticed that the execution of a STOP statement prevented these .dyn files from appearing.&lt;/P&gt;&lt;P&gt;I do not expect the C++ code to be covered ;), but if my observation is correct, I will have to look for a different solution.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231261#M152878</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2020-11-24T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231377#M152880</link>
      <description>&lt;P&gt;Did you call for_rtl_init_ / for_rtl_finish_ from your C++ code?&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/for-rtl-init.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/for-rtl-init.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 21:27:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231377#M152880</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2020-11-24T21:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231379#M152881</link>
      <description>&lt;P&gt;Yes, a STOP would definitely prevent the .dyn file from appearing - I've seen that before. I don't know if it's possible to get the .dyn file if the main program isn't from an Intel compiler - perhaps someone else does.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 21:31:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231379#M152881</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-11-24T21:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231522#M152884</link>
      <description>&lt;P&gt;I am pretty sure we don't - it is definitely worth a try! Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 07:17:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231522#M152884</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2020-11-25T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code coverage when the main program is not a Fortran program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231548#M152885</link>
      <description>&lt;P&gt;Oh, it seems I was wrong about the C++ program not producing the .dyn files. They simply appear in a rather unexpected directory.&lt;/P&gt;&lt;P&gt;Some details: I use the option "-Qprof-dir: ." and then the .dyn files appear in the directory holding the .vfproj file in question. I was used to the relevant .vfproj file to be the one of the main program and I searched for these files in the directories for the various libraries. But I forgot that we also have some rather general libraries and the .dyn files were written there. In both cases: with the original C++ program driving the library and with the pair for_rtl_init_/for_rtl_finish_ in place.&lt;/P&gt;&lt;P&gt;Okay, that makes it easier from the perspective of the C++ program ;).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 08:44:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Code-coverage-when-the-main-program-is-not-a-Fortran-program/m-p/1231548#M152885</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2020-11-25T08:44:38Z</dc:date>
    </item>
  </channel>
</rss>

