<?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: SYCL DPC++ auto detect device in Migrating to SYCL</title>
    <link>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1397803#M203</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Is there any way to do this without using dpct ? I had a look at how dpct does this (here) but it looks pretty non_straightforward and it relies on other internal functions.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;You can try replacing&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT face="courier new,courier"&gt; dpct::get_current_device()&lt;/FONT&gt;&lt;SPAN&gt; with&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="xml"&gt; q_ct1.get_device().get_info&amp;lt;sycl::info::device::name&amp;gt;()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;For more information refer the below link:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;A href="https://intel.github.io/llvm-docs/doxygen/classcl_1_1sycl_1_1queue.html#a2f991915c57bfb1d73992fde421d56c8" target="_blank" rel="noopener"&gt;https://intel.github.io/llvm-docs/doxygen/classcl_1_1sycl_1_1queue.html#a2f991915c57bfb1d73992fde421d56c8&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Manjula&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 12:57:44 GMT</pubDate>
    <dc:creator>ManjulaC_Intel</dc:creator>
    <dc:date>2022-07-05T12:57:44Z</dc:date>
    <item>
      <title>SYCL DPC++ auto detect device</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1397561#M202</link>
      <description>&lt;P&gt;This question might be trival, unfortunately I haven't found the answer I was looking for. I used DPCT migration tool to port some cuda code to intel DPC++ and then I further optimized everything I needed and eventually got rid of everything related to DPCT expect the super handy&lt;/P&gt;
&lt;PRE&gt;dpct::get_current_device();
&lt;/PRE&gt;
&lt;P&gt;which basically solves all the previous pain I had to put compile options to select the appropriate device and control them with Makefiles&lt;A href="https://tinyurl.com/mrzkdrbr" target="_self"&gt;&amp;nbsp;&lt;/A&gt;and so on.&lt;/P&gt;
&lt;P&gt;Is there any way to do this without using dpct ? I had a look at how dpct does this (&lt;A href="https://github.com/oneapi-src/SYCLomatic/blob/be9a2455fda07ba43ae259b6c82e6eb2e2354c4f/clang/test/dpct/helper_files_ref/include/device.hpp#L475-L477" rel="nofollow noreferrer" target="_blank"&gt;here&lt;/A&gt;) but it looks pretty non_straightforward and it relies on other internal functions.&lt;/P&gt;
&lt;P&gt;Is there any way to avoid this ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 11:33:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1397561#M202</guid>
      <dc:creator>aamirkhann</dc:creator>
      <dc:date>2022-07-04T11:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: SYCL DPC++ auto detect device</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1397803#M203</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Is there any way to do this without using dpct ? I had a look at how dpct does this (here) but it looks pretty non_straightforward and it relies on other internal functions.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;You can try replacing&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT face="courier new,courier"&gt; dpct::get_current_device()&lt;/FONT&gt;&lt;SPAN&gt; with&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="xml"&gt; q_ct1.get_device().get_info&amp;lt;sycl::info::device::name&amp;gt;()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;For more information refer the below link:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;A href="https://intel.github.io/llvm-docs/doxygen/classcl_1_1sycl_1_1queue.html#a2f991915c57bfb1d73992fde421d56c8" target="_blank" rel="noopener"&gt;https://intel.github.io/llvm-docs/doxygen/classcl_1_1sycl_1_1queue.html#a2f991915c57bfb1d73992fde421d56c8&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Manjula&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 12:57:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1397803#M203</guid>
      <dc:creator>ManjulaC_Intel</dc:creator>
      <dc:date>2022-07-05T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re:SYCL DPC++ auto detect device</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1399873#M208</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: sans-serif; font-size: 12px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif; font-size: 12px;"&gt;A gentle reminder to respond.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif; font-size: 12px;"&gt;Manjula&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2022 03:47:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1399873#M208</guid>
      <dc:creator>ManjulaC_Intel</dc:creator>
      <dc:date>2022-07-13T03:47:14Z</dc:date>
    </item>
    <item>
      <title>Re:SYCL DPC++ auto detect device</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1401781#M210</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif;"&gt;I have not heard back from you. I assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: sans-serif;"&gt;Manjula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jul 2022 04:14:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/SYCL-DPC-auto-detect-device/m-p/1401781#M210</guid>
      <dc:creator>ManjulaC_Intel</dc:creator>
      <dc:date>2022-07-20T04:14:03Z</dc:date>
    </item>
  </channel>
</rss>

