<?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 try catch can be expensive in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156744#M161</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the DPC++ compatibility tool on CUDA code I see that every one of my kernel launches in the generated cpp code is bracketed by a try-catch construct.&amp;nbsp; It has been my experience that 'try' can be expensive in execution time&amp;nbsp;(as well the experience of others, e.g.&amp;nbsp;https://stackoverflow.com/questions/52312/what-is-the-real-overhead-of-try-catch-in-c).&amp;nbsp; Is there a way to disable or consolidate the try-catch so that it doesn't occur at each kernel launch but perhaps after a block of launches.&amp;nbsp; We might lose the ability to isolate errors to a particular launch, but that might be a reasonable tradeoff for performance in situations where large numbers of kernels must be launched.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ismayil&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 16:20:27 GMT</pubDate>
    <dc:creator>Guracar__Ismayil</dc:creator>
    <dc:date>2019-12-13T16:20:27Z</dc:date>
    <item>
      <title>try catch can be expensive</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156744#M161</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the DPC++ compatibility tool on CUDA code I see that every one of my kernel launches in the generated cpp code is bracketed by a try-catch construct.&amp;nbsp; It has been my experience that 'try' can be expensive in execution time&amp;nbsp;(as well the experience of others, e.g.&amp;nbsp;https://stackoverflow.com/questions/52312/what-is-the-real-overhead-of-try-catch-in-c).&amp;nbsp; Is there a way to disable or consolidate the try-catch so that it doesn't occur at each kernel launch but perhaps after a block of launches.&amp;nbsp; We might lose the ability to isolate errors to a particular launch, but that might be a reasonable tradeoff for performance in situations where large numbers of kernels must be launched.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ismayil&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:20:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156744#M161</guid>
      <dc:creator>Guracar__Ismayil</dc:creator>
      <dc:date>2019-12-13T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156745#M162</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us. We will get back to you soon.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 04:27:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156745#M162</guid>
      <dc:creator>AnubhavJ_intel</dc:creator>
      <dc:date>2019-12-16T04:27:02Z</dc:date>
    </item>
    <item>
      <title>Hi Ismayil,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156746#M163</link>
      <description>&lt;P&gt;Hi Ismayil,&lt;/P&gt;&lt;P&gt;After migration to DPCPP, the user is required to review, complete, test and fine tune and optimize(as you may see fit) the output of the tool.&lt;/P&gt;&lt;P&gt;-Varsha&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 19:20:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1156746#M163</guid>
      <dc:creator>Varsha_M_Intel</dc:creator>
      <dc:date>2019-12-17T19:20:47Z</dc:date>
    </item>
    <item>
      <title>Re:try catch can be expensive</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1291048#M1320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, we are considering that your issue has been resolved.&lt;/P&gt;&lt;P&gt;We will no longer monitor this thread. If you require any additional assistance from Intel, please start a new thread.&lt;/P&gt;&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2021 10:01:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/try-catch-can-be-expensive/m-p/1291048#M1320</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-06-18T10:01:07Z</dc:date>
    </item>
  </channel>
</rss>

