<?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 Hi Nyan, in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161330#M225</link>
    <description>Hi Nyan,

If you are still interested, Codeplay has released the forementioned module.
Read further &lt;A href="https://www.codeplay.com/portal/02-03-20-codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus" target="_blank"&gt;https://www.codeplay.com/portal/02-03-20-codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus&lt;/A&gt;

Dima</description>
    <pubDate>Tue, 11 Feb 2020 18:55:23 GMT</pubDate>
    <dc:creator>Dmitry_Savin</dc:creator>
    <dc:date>2020-02-11T18:55:23Z</dc:date>
    <item>
      <title>Why can't run code on GPGPU?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161323#M218</link>
      <description>&lt;P&gt;I am testing the code on different devices. I tested on CPU, IntelGPU, GPGPU.&lt;/P&gt;&lt;P&gt;Can't run the code on GPGPU. May I know what is the problem?&lt;/P&gt;&lt;P&gt;My test code is as follows.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:cpp; wrap-lines:false;"&gt;int main() {
  std::array&amp;lt;int, SIZE&amp;gt; myArray;
  for (int i = 0; i&amp;lt;SIZE; ++i)
    myArray&lt;I&gt; = i;

  printf("Value at start:  myArray[42] is %d.\n",myArray[42]);
  {
    cl::sycl::queue myQ( gpu_selector{} ); /* use defaults today; parameters possible - future topic */
    std::cout &amp;lt;&amp;lt; "Selected device: " &amp;lt;&amp;lt; myQ.get_device().get_info&amp;lt;info::device::name&amp;gt;() &amp;lt;&amp;lt; "\n";
    std::cout &amp;lt;&amp;lt; "-&amp;gt; Device vendor: " &amp;lt;&amp;lt; myQ.get_device().get_info&amp;lt;info::device::vendor&amp;gt;() &amp;lt;&amp;lt; "\n";
    cl::sycl::range&amp;lt;1&amp;gt; mySize{SIZE};

    cl::sycl::buffer&amp;lt;int, 1&amp;gt; bufferA(myArray.data(), mySize);

    myQ.submit([&amp;amp;](cl::sycl::handler &amp;amp;myHandle) {
      auto deviceAccessorA =
        bufferA.get_access&amp;lt;cl::sycl::access::mode::read_write&amp;gt;(myHandle);
      myHandle.parallel_for&amp;lt;class uniqueID&amp;gt;(mySize,[=](cl::sycl::id&amp;lt;1&amp;gt; index) {
	  deviceAccessorA[index] *= 2;
      });
    });
  }
  printf("Value at finish: myArray[42] is %d.\n",myArray[42]);
}&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;The running outputs are as follows for different devices.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE class="brush:; class-name:dark; wrap-lines:false;"&gt;Value at start:  myArray[42] is 42.
Selected device: Quadro P4000
-&amp;gt; Device vendor: NVIDIA Corporation
Value at finish: myArray[42] is 42.
coie@coie-HP-Z440-Workstation:~/Data/coie/Softwares/oneAPI/dpc++/module01$ make all
dpcpp -O3 -std=c++14 -g -fsycl-unnamed-lambda    doubler.cpp   -o doubler
coie@coie-HP-Z440-Workstation:~/Data/coie/Softwares/oneAPI/dpc++/module01$ ./doubler
Value at start:  myArray[42] is 42.
Selected device: Intel(R) Xeon(R) CPU E5-1620 v4 @ 3.50GHz
-&amp;gt; Device vendor: Intel(R) Corporation
Value at finish: myArray[42] is 84.
coie@coie-HP-Z440-Workstation:~/Data/coie/Softwares/oneAPI/dpc++/module01$ make all
dpcpp -O3 -std=c++14 -g -fsycl-unnamed-lambda    doubler.cpp   -o doubler
coie@coie-HP-Z440-Workstation:~/Data/coie/Softwares/oneAPI/dpc++/module01$ ./doubler
Value at start:  myArray[42] is 42.
Selected device: Intel(R) FPGA Emulation Device
-&amp;gt; Device vendor: Intel(R) Corporation
Value at finish: myArray[42] is 84.
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 22 Dec 2019 13:07:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161323#M218</guid>
      <dc:creator>nnain1</dc:creator>
      <dc:date>2019-12-22T13:07:33Z</dc:date>
    </item>
    <item>
      <title>As you can see in the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161324#M219</link>
      <description>&lt;P&gt;As you can see in the neighbor topic (842261), Nvidia GPUs are not supported yet.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 19:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161324#M219</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2019-12-22T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Thank you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161325#M220</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 04:09:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161325#M220</guid>
      <dc:creator>nnain1</dc:creator>
      <dc:date>2019-12-23T04:09:21Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161326#M221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are trying to run the code on NVIDIA GPU which is not supported at this stage, so after running the queue it's giving the result produced on the host.&amp;nbsp;DPC++ code generates SPIRV IR which is not compatible with Nvidia GPUs. On the other hand for NVIDIA GPU we need PTX as an intermediate file.&lt;/P&gt;&lt;P&gt;Let us know if this resolves your Issue.&lt;/P&gt;&lt;P&gt;-Abhishek&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 06:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161326#M221</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2019-12-23T06:28:00Z</dc:date>
    </item>
    <item>
      <title>Currently OneAPi does not</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161327#M222</link>
      <description>&lt;P&gt;Currently OneAPi does not support nVidia GPU, does anyone know when it might appear ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 13:20:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161327#M222</guid>
      <dc:creator>Connor__Dominic</dc:creator>
      <dc:date>2019-12-24T13:20:48Z</dc:date>
    </item>
    <item>
      <title>CodePlay has announced they</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161328#M223</link>
      <description>&lt;P&gt;CodePlay has announced they're working on an open source module that allows you to run oneAPI/Data Parallel C++ codes on NVIDIA GPUs. From the announcement:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Software developers will be able to use this implementation with Intel's® oneAPI framework to target Nvidia GPUs using any SYCL code, without any porting or special tricks required.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is &lt;A href="https://www.codeplay.com/portal/12-16-19-bringing-nvidia-gpu-support-to-sycl-developers" target="_blank"&gt;the full news brief&lt;/A&gt;. Targeting early 2020, it seems like. If interested, I recommend you subscribe to their news announcements. I'll also try to post here once I have more details.&lt;/P&gt;&lt;P&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 18:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161328#M223</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2019-12-24T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Thank you. Good suggestion.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161329#M224</link>
      <description>&lt;P&gt;Thank you. Good suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 11:21:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161329#M224</guid>
      <dc:creator>nnain1</dc:creator>
      <dc:date>2019-12-25T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Hi Nyan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161330#M225</link>
      <description>Hi Nyan,

If you are still interested, Codeplay has released the forementioned module.
Read further &lt;A href="https://www.codeplay.com/portal/02-03-20-codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus" target="_blank"&gt;https://www.codeplay.com/portal/02-03-20-codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus&lt;/A&gt;

Dima</description>
      <pubDate>Tue, 11 Feb 2020 18:55:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Why-can-t-run-code-on-GPGPU/m-p/1161330#M225</guid>
      <dc:creator>Dmitry_Savin</dc:creator>
      <dc:date>2020-02-11T18:55:23Z</dc:date>
    </item>
  </channel>
</rss>

