<?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 How to setup OpenCL in Cygwin for Intel GPU in GPU Compute Software</title>
    <link>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1378427#M445</link>
    <description>&lt;P&gt;I have a Laptop with Intel(R) HD Graphic 520 GPU in it. It added OpenCL developer Packages to Cygwin. I have found a small Mandelbrot-Set calculator program for OpenCL in C on Github. It is for Apple, so I modified the Makefile to use the proper headers and settings for gcc. Now the code compiles and executes nicely (bmp file created):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ ./mandelbrot.exe&lt;BR /&gt;Device 0: GenuineIntel pthread-Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz&lt;BR /&gt;I have two questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#1. How can I add (if it is possible) the Intel GPU to the /etc/OpenCL/vendors list? I tried to install from Intel site the Intel CPU runtime for OpenCL Applications for Windows OS and Intel Graphics Technology driver package, but I do not know where can I find the proper OpenCL dll I can point in the intel.idc file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#2. In /etc/OpenCL/vendors I have found a pocl.icd file pointing to cygpocl-2.dll. I assume this is the pthread library. But it seems to me it is running only a single thread, although I have 4 cores. Should I do any modification to run it in multiple threads? I debugged the code and it seems that as there are only one device found, so it runs only on one thread. In the initialization function it sets the device&lt;A href="https://deepmaterialkr.com/" target="_self"&gt;&amp;nbsp;&lt;/A&gt;work_size property for processing a stirp per device of the final bmp. But as there is only one device, the whole bmp is processed by one run (one clEnqueueNDRangeKernel and one clEnqueueReadBuffer is called).&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 08:46:56 GMT</pubDate>
    <dc:creator>Tahirazemgrm</dc:creator>
    <dc:date>2022-04-20T08:46:56Z</dc:date>
    <item>
      <title>How to setup OpenCL in Cygwin for Intel GPU</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1378427#M445</link>
      <description>&lt;P&gt;I have a Laptop with Intel(R) HD Graphic 520 GPU in it. It added OpenCL developer Packages to Cygwin. I have found a small Mandelbrot-Set calculator program for OpenCL in C on Github. It is for Apple, so I modified the Makefile to use the proper headers and settings for gcc. Now the code compiles and executes nicely (bmp file created):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ ./mandelbrot.exe&lt;BR /&gt;Device 0: GenuineIntel pthread-Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz&lt;BR /&gt;I have two questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#1. How can I add (if it is possible) the Intel GPU to the /etc/OpenCL/vendors list? I tried to install from Intel site the Intel CPU runtime for OpenCL Applications for Windows OS and Intel Graphics Technology driver package, but I do not know where can I find the proper OpenCL dll I can point in the intel.idc file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#2. In /etc/OpenCL/vendors I have found a pocl.icd file pointing to cygpocl-2.dll. I assume this is the pthread library. But it seems to me it is running only a single thread, although I have 4 cores. Should I do any modification to run it in multiple threads? I debugged the code and it seems that as there are only one device found, so it runs only on one thread. In the initialization function it sets the device&lt;A href="https://deepmaterialkr.com/" target="_self"&gt;&amp;nbsp;&lt;/A&gt;work_size property for processing a stirp per device of the final bmp. But as there is only one device, the whole bmp is processed by one run (one clEnqueueNDRangeKernel and one clEnqueueReadBuffer is called).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:46:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1378427#M445</guid>
      <dc:creator>Tahirazemgrm</dc:creator>
      <dc:date>2022-04-20T08:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup OpenCL in Cygwin for Intel GPU</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1403484#M569</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To compile and run OpenCL programs in Cygwin: &lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Ensure that you have the latest GPU driver by installing from &lt;/SPAN&gt;&lt;A style="font-family: 'Segoe UI', sans-serif; font-size: 14px;" href="https://www.intel.in/content/www/in/en/support/intel-driver-support-assistant.html" target="_blank" rel="noopener noreferrer"&gt;https://www.intel.in/content/www/in/en/support/intel-driver-support-assistant.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Install OpenCL header and Library from &lt;/SPAN&gt;&lt;A style="font-size: 14px;" href="https://registry.khronos.org/OpenCL/" target="_blank" rel="noopener noreferrer"&gt;Khronos OpenCL Registry - The Khronos Group Inc&lt;/A&gt;&lt;SPAN&gt; or from Intel OpenCL SDK &lt;/SPAN&gt;&lt;A style="font-size: 14px;" href="https://www.intel.com/content/www/us/en/developer/tools/opencl-sdk/choose-download.html" target="_blank" rel="noopener noreferrer"&gt;Choose &amp;amp; Download Intel® SDK for OpenCL™ Applications&lt;/A&gt;&lt;SPAN&gt; &amp;nbsp;, if you have not already done so.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Install libOpenCL1 cygwin package via Cygwin Package Manager &lt;/SPAN&gt;&lt;A style="font-size: 14px;" href="https://cygwin.com/install.html" target="_blank" rel="noopener noreferrer"&gt;Cygwin Installation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Replace the cygwin's OpenCL library with the DLL from Intel (Copy as below) &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Copy file "/cygdrive/c/Windows/System32/OpenCl.dll" to directory "/cygdrive/c/cygwin64/bin/" and alter it as "/cygdrive/c/cygwin64/bin/cygOpenCL-1.dll" &amp;nbsp;(You can save old dll as &amp;nbsp;"/cygdrive/c/cygwin64/bin/cygOpenCL-1-old.dll")&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Ensure that “/etc/OpenCL/vendors/intel.icd” points to “cygOpenCL-1.dll”&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Recompile and run your OpenCL program for GPU.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please try this and share your results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anita&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 13:16:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1403484#M569</guid>
      <dc:creator>Anita_Intel</dc:creator>
      <dc:date>2022-07-26T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re:How to setup OpenCL in Cygwin for Intel GPU</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1405643#M576</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hi Tahir Azemgrm,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, system-ui, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Web&amp;quot;, sans-serif;"&gt;I am checking to see whether you are now able to access the GPU in Cygwin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2022 06:19:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1405643#M576</guid>
      <dc:creator>Anita_Intel</dc:creator>
      <dc:date>2022-08-03T06:19:37Z</dc:date>
    </item>
    <item>
      <title>Re:How to setup OpenCL in Cygwin for Intel GPU</title>
      <link>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1407299#M582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Aug 2022 06:39:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/GPU-Compute-Software/How-to-setup-OpenCL-in-Cygwin-for-Intel-GPU/m-p/1407299#M582</guid>
      <dc:creator>Anita_Intel</dc:creator>
      <dc:date>2022-08-10T06:39:44Z</dc:date>
    </item>
  </channel>
</rss>

