<?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 Detecting underfined behavior with ICPX in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Detecting-underfined-behavior-with-ICPX/m-p/1561261#M3517</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I've encountered undefined behavior in my SYCL application, leading to incorrect results when compiled with the -O2 option. I attempted to detect this using a sanitizer, configuring my CMake file with compile options like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;add_compile_options(-Wall -g -O2 -fsanitize=undefined)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set(SYCL_FLAGS "-fsycl"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-fsycl-targets=spir64_x86_64"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-fsycl-unnamed-lambda"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-Wno-linker-warnings")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;target_link_libraries(&lt;SPAN&gt;-fsanitize=undefined)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, during the build stage, I received a warning &lt;/SPAN&gt;&amp;nbsp;&lt;STRONG&gt;icpx: warning: ignoring '-fsanitize=undefined' option as it is not currently supported for target 'spir64_x86_64-unknown-unknown' [-Woption-ignored].&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I enable a sanitizer with ICPX for my 12th Gen Intel® Core™ i9-12900H CPU?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 18:09:38 GMT</pubDate>
    <dc:creator>peizhao</dc:creator>
    <dc:date>2024-01-09T18:09:38Z</dc:date>
    <item>
      <title>Detecting underfined behavior with ICPX</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Detecting-underfined-behavior-with-ICPX/m-p/1561261#M3517</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've encountered undefined behavior in my SYCL application, leading to incorrect results when compiled with the -O2 option. I attempted to detect this using a sanitizer, configuring my CMake file with compile options like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;add_compile_options(-Wall -g -O2 -fsanitize=undefined)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set(SYCL_FLAGS "-fsycl"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-fsycl-targets=spir64_x86_64"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-fsycl-unnamed-lambda"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"-Wno-linker-warnings")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;target_link_libraries(&lt;SPAN&gt;-fsanitize=undefined)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, during the build stage, I received a warning &lt;/SPAN&gt;&amp;nbsp;&lt;STRONG&gt;icpx: warning: ignoring '-fsanitize=undefined' option as it is not currently supported for target 'spir64_x86_64-unknown-unknown' [-Woption-ignored].&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I enable a sanitizer with ICPX for my 12th Gen Intel® Core™ i9-12900H CPU?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:09:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Detecting-underfined-behavior-with-ICPX/m-p/1561261#M3517</guid>
      <dc:creator>peizhao</dc:creator>
      <dc:date>2024-01-09T18:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting underfined behavior with ICPX</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Detecting-underfined-behavior-with-ICPX/m-p/1586831#M3611</link>
      <description>&lt;P&gt;&lt;SPAN class="sub_section_element_selectors"&gt;-fsanitize=undefined and&amp;nbsp;-fsycl-targets=spir64_x86_64 options cannot be used together. you may want to take off&amp;nbsp;-fsycl-targets=spir64_x86_64, depending on what you want to achieve.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 22:25:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Detecting-underfined-behavior-with-ICPX/m-p/1586831#M3611</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-04-05T22:25:27Z</dc:date>
    </item>
  </channel>
</rss>

