<?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: Problem generating dyn files with icpx compiler in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1621169#M4014</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response! I would like to try your method, but is there a way to generate .dyn files that can be used by codecov?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 13:46:42 GMT</pubDate>
    <dc:creator>tofushan</dc:creator>
    <dc:date>2024-08-06T13:46:42Z</dc:date>
    <item>
      <title>Problem generating dyn files with icpx compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1620287#M4002</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to generate .dyn files to obtain codecov report following &lt;A href="https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/code-coverage-tool.html" target="_self"&gt;this tutorial&lt;/A&gt;. However, I just realize that newer C++ compiler (icpx) does not have the corresponding flag (-pro-gen=srcpos) used by the older one (icpc) to generate the .dyn files. I also tried to use -fprofile-generate tag for icpx, but it generates a different file format (*.profraw), which I guess it cannot be used by profmerge or codecov.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been looking for a documentation or similar questions but still couldn't find a solution. Any feedback is appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:15:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1620287#M4002</guid>
      <dc:creator>tofushan</dc:creator>
      <dc:date>2024-08-02T14:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem generating dyn files with icpx compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1620387#M4005</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try something like this, suppose your source file is test.c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;icx -c -fcoverage-mapping -fprofile-instr-generate test.c&lt;BR /&gt;icx -c -fprofile-instr-generate -fcoverage-mapping -mllvm -spi-generate -mllvm -spi-filename=test.spi test.c&lt;BR /&gt;icx test.o -o test -fprofile-instr-generate&lt;BR /&gt;./test&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check where your llvm-profgen is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;icx --print-prog-name=llvm-profgen&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It'll tell you something like this:&amp;nbsp;/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-profgen&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-profdata merge -o test.profdata *profraw&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You should have 2 additional output: default.profraw, test.profdata&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; /opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-cov report -format=xml -instr-profile=test.profdata test.spi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You'll get some output about coverage info in xml format.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also send the output to another xml file:&amp;nbsp;&lt;BR /&gt;/opt/intel/oneapi/compiler/2024.2/bin/compiler/llvm-cov report -format=xml -show-regions-in-xml -instr-profile=test.profdata test.spi &amp;gt; cov.xml&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://llvm.org/docs/CommandGuide/llvm-cov.html" target="_blank" rel="noopener"&gt;https://llvm.org/docs/CommandGuide/llvm-cov.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 23:18:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1620387#M4005</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-08-02T23:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem generating dyn files with icpx compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1621169#M4014</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response! I would like to try your method, but is there a way to generate .dyn files that can be used by codecov?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1621169#M4014</guid>
      <dc:creator>tofushan</dc:creator>
      <dc:date>2024-08-06T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem generating dyn files with icpx compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1622236#M4022</link>
      <description>&lt;P&gt;not with icx.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;codecov doesn't understand the profile generated by icx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 22:09:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problem-generating-dyn-files-with-icpx-compiler/m-p/1622236#M4022</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-08-09T22:09:41Z</dc:date>
    </item>
  </channel>
</rss>

