<?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:Running DPC++ on NVIDIA GPU via OpenCL instead ... in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194058#M598</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We appreciate your findings. But currently, &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements-beta.html" target="_self"&gt;&lt;STRONG&gt;Intel OneAPI&lt;/STRONG&gt;&lt;/A&gt; does not support NVIDIA GPUs.&lt;/P&gt;
&lt;P&gt;However, you can try the &lt;A href="https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain-with-support-for-nvidia-cuda%20" target="_self"&gt;&lt;STRONG&gt;DPC++ branch of the LLVM compiler project&lt;/STRONG&gt;&lt;/A&gt; which is CodePlay's contribution to DPC++ which has support for NVIDIA GPUs. This will enable you to target NVIDIA GPUs using the SYCL code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Abhishek&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 06:02:27 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2020-07-29T06:02:27Z</dc:date>
    <item>
      <title>Running DPC++ on NVIDIA GPU via OpenCL instead of CUDA</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1193882#M597</link>
      <description>&lt;P&gt;Well, as I know, technically it should be possible, because you can run OpenCL on GPU and SYCL based on OpenCL. But the problem is, that look likes DPC++ always try to use CUDA, then see NVIDIA GPU (I have sucessufly reproduce the problem on two machines with different NVIDIA GPUs: GTX 650 and GTX 1080).&lt;BR /&gt;For example, there is this test project (see attachments). The code uses gpu_selector and system (linux) have &lt;BR /&gt;Then I have run the builded executable&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;./main&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I have this message&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pi_die: CUDA support was not enabled at compilation time
terminate called without an active exception
Aborted (core dumped)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Is I know, is situation like that, when there two possible way to use device (opencl or cuda, for example) can be used SYCL_BE environment variable.&lt;BR /&gt;But even I have run executable like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SYCL_BE=PI_OPENCL ./main&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I still have the message about missing CUDA support&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pi_die: CUDA support was not enabled at compilation time
terminate called without an active exception
Aborted (core dumped)&lt;/LI-CODE&gt;
&lt;P&gt;Am I doing something wrong?&lt;/P&gt;
&lt;P&gt;Additional info&lt;BR /&gt;OS: Ubuntu 18.04.4 LTS&lt;BR /&gt;DPCPP compiler version: Intel(R) oneAPI DPC++ Compiler 2021.1-beta07 (2020.5.0.0604)&lt;BR /&gt;CPU: Intel, but without integrated GPU&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 13:17:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1193882#M597</guid>
      <dc:creator>sirgienko</dc:creator>
      <dc:date>2020-07-21T13:17:07Z</dc:date>
    </item>
    <item>
      <title>Re:Running DPC++ on NVIDIA GPU via OpenCL instead ...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194058#M598</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We appreciate your findings. But currently, &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements-beta.html" target="_self"&gt;&lt;STRONG&gt;Intel OneAPI&lt;/STRONG&gt;&lt;/A&gt; does not support NVIDIA GPUs.&lt;/P&gt;
&lt;P&gt;However, you can try the &lt;A href="https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain-with-support-for-nvidia-cuda%20" target="_self"&gt;&lt;STRONG&gt;DPC++ branch of the LLVM compiler project&lt;/STRONG&gt;&lt;/A&gt; which is CodePlay's contribution to DPC++ which has support for NVIDIA GPUs. This will enable you to target NVIDIA GPUs using the SYCL code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Abhishek&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 06:02:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194058#M598</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-07-29T06:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Running DPC++ on NVIDIA GPU via OpenCL instead ...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194060#M599</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;Abhishek&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Well, you have add link in your message on "Build DPC++ toolchain with support for NVIDIA CUDA", but, if I am not mistaken, the topic is about running SYCL via CUDA on NVIDIA GPU. My question about how I can use OpenCL, which supported on NVIDIA GPU too and actually totally workable and even don't use CUDA runtime.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Nikita&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 11:35:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194060#M599</guid>
      <dc:creator>sirgienko</dc:creator>
      <dc:date>2020-07-22T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re:Running DPC++ on NVIDIA GPU via OpenCL instead ...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194964#M607</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pardon us for the delay, we are referring your problem to the concerned team. They will get back to you.&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>Mon, 27 Jul 2020 12:05:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1194964#M607</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-07-27T12:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Running DPC++ on NVIDIA GPU via OpenCL instead ...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1195327#M614</link>
      <description>&lt;P&gt;The error you are seeing in the original post is because the DPC++ compiler is not built with the Nvidia GPU support by default. You currently need to build this yourself. The instructions are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain-with-support-for-nvidia-cuda" target="_blank"&gt;https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain-with-support-for-nvidia-cuda&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The response from &lt;SPAN&gt;Abhishek&amp;nbsp;&lt;/SPAN&gt;is not totally accurate either, the Nvidia support is now available in the main Intel LLVM branch.&lt;/P&gt;
&lt;P&gt;You might also be interested in this blog post about the work (I work at Codeplay)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.codeplay.com/portal/news/2020/02/03/codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus.html" target="_blank"&gt;https://www.codeplay.com/portal/news/2020/02/03/codeplay-contribution-to-dpcpp-brings-sycl-support-for-nvidia-gpus.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This doesn't use OpenCL to run your SYCL code on the GPU but instead uses PTX instructions via native CUDA calls.&lt;/P&gt;
&lt;P&gt;You can't use the OpenCL implementation for Nvidia with SYCL because it does not support SPIR/SPIR-V intermediate instructions.&lt;/P&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:15:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Running-DPC-on-NVIDIA-GPU-via-OpenCL-instead-of-CUDA/m-p/1195327#M614</guid>
      <dc:creator>rodcpl</dc:creator>
      <dc:date>2020-07-28T13:15:49Z</dc:date>
    </item>
  </channel>
</rss>

