<?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: Re:clGetPlatformIDs returns error (no OpenCL platform) in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381997#M107643</link>
    <description>&lt;P&gt;Hi Deivid,&lt;/P&gt;
&lt;P&gt;The issue is that I want to run an OpenCL code on Intel HD 530 which is supposed to support OpenCL. But in reality when I run the OpenCL function &lt;STRONG&gt;clGetPlatformIDs&lt;/STRONG&gt; it returns no compatible device. That is weird.&lt;/P&gt;
&lt;P&gt;I am working on some educational exercises dealing with OpenCL performance and benchmarking on different devices.&lt;/P&gt;
&lt;P&gt;I am using Ubuntu 20.04 with the following OpenCL related packages:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ dpkg -l | grep opencl
ii  ocl-icd-libopencl1:amd64                                    2.2.11-1ubuntu1                               amd64        Generic OpenCL ICD Loader
ii  ocl-icd-opencl-dev:amd64                                    2.2.11-1ubuntu1                               amd64        OpenCL development files
ii  opencl-c-headers                                            2.2~2019.08.06-g0d5f18c-1                     all          OpenCL (Open Computing Language) C header files
ii  opencl-clhpp-headers                                        2.1.0~~git51-gc5063c3-1                       all          C++ headers for OpenCL development
ii  opencl-headers                                              2.2~2019.08.06-g0d5f18c-1                     all          OpenCL (Open Computing Language) header files
&lt;/LI-CODE&gt;
&lt;P&gt;I can share the code but since the code has multiple files, I guess it will make things complicated. As I said, the question is why &lt;STRONG&gt;clGetPlatformIDs&lt;/STRONG&gt; returns no compatible device on 530.&lt;/P&gt;
&lt;P&gt;Any thoughts on that?&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 09:21:35 GMT</pubDate>
    <dc:creator>Mahmoodn</dc:creator>
    <dc:date>2022-05-05T09:21:35Z</dc:date>
    <item>
      <title>clGetPlatformIDs returns error (no OpenCL platform)</title>
      <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381439#M107604</link>
      <description>&lt;P&gt;I have an Intel HD 530 with a Core-i5 6600 CPU as you can see below and according to Intel document &lt;A href="https://www.intel.com/content/www/us/en/support/articles/000005524/graphics.html" target="_self"&gt;page&lt;/A&gt;, this model supports OpenCL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ lscpu | grep "Model name"
Model name:                      Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
$ sudo lshw -numeric -C display
  *-display                 
       description: VGA compatible controller
       product: HD Graphics 530 [8086:1912]
       vendor: Intel Corporation [8086]
       physical id: 2
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to run an OpenCL code, there is a section that first discovers available platforms and that is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Discover and populate the platforms
status = clGetPlatformIDs(0, NULL, &amp;amp;numPlatforms);
cl_errChk(status, "Getting platform IDs", true);
if (numPlatforms &amp;gt; 0) {
  // Get all the platforms
  platforms = (cl_platform_id*)alloc(numPlatforms *
  sizeof(cl_platform_id));

  status = clGetPlatformIDs(numPlatforms, platforms, NULL);
  cl_errChk(status, "Getting platform IDs", true);
} else {
  // If no platforms are available, we shouldn't continue
  printf("No OpenCL platforms found\n");
  exit(-1);
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the program starts, it goes to the "else" part that shows the message that no OpenCL platform found.&lt;/P&gt;
&lt;P&gt;How can I fix the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 12:44:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381439#M107604</guid>
      <dc:creator>Mahmoodn</dc:creator>
      <dc:date>2022-05-03T12:44:08Z</dc:date>
    </item>
    <item>
      <title>Re:clGetPlatformIDs returns error (no OpenCL platform)</title>
      <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381728#M107625</link>
      <description>&lt;P&gt;Hello Mahmoodn,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting on the Intel® communities. I am sorry to know that you are having issues with your Intel® HD Graphics 530.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In order to better assist you, please provide the following:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;1. &lt;/B&gt;Can you provide more details about the issue?&lt;/P&gt;&lt;P&gt;&lt;B&gt;2. &lt;/B&gt;Are you working on a project or developing something?&lt;/P&gt;&lt;P&gt;&lt;B&gt;3. &lt;/B&gt;What is the tool that you are using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deivid A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel Customer Support Technician&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2022 14:05:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381728#M107625</guid>
      <dc:creator>DeividA_Intel</dc:creator>
      <dc:date>2022-05-04T14:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re:clGetPlatformIDs returns error (no OpenCL platform)</title>
      <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381997#M107643</link>
      <description>&lt;P&gt;Hi Deivid,&lt;/P&gt;
&lt;P&gt;The issue is that I want to run an OpenCL code on Intel HD 530 which is supposed to support OpenCL. But in reality when I run the OpenCL function &lt;STRONG&gt;clGetPlatformIDs&lt;/STRONG&gt; it returns no compatible device. That is weird.&lt;/P&gt;
&lt;P&gt;I am working on some educational exercises dealing with OpenCL performance and benchmarking on different devices.&lt;/P&gt;
&lt;P&gt;I am using Ubuntu 20.04 with the following OpenCL related packages:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ dpkg -l | grep opencl
ii  ocl-icd-libopencl1:amd64                                    2.2.11-1ubuntu1                               amd64        Generic OpenCL ICD Loader
ii  ocl-icd-opencl-dev:amd64                                    2.2.11-1ubuntu1                               amd64        OpenCL development files
ii  opencl-c-headers                                            2.2~2019.08.06-g0d5f18c-1                     all          OpenCL (Open Computing Language) C header files
ii  opencl-clhpp-headers                                        2.1.0~~git51-gc5063c3-1                       all          C++ headers for OpenCL development
ii  opencl-headers                                              2.2~2019.08.06-g0d5f18c-1                     all          OpenCL (Open Computing Language) header files
&lt;/LI-CODE&gt;
&lt;P&gt;I can share the code but since the code has multiple files, I guess it will make things complicated. As I said, the question is why &lt;STRONG&gt;clGetPlatformIDs&lt;/STRONG&gt; returns no compatible device on 530.&lt;/P&gt;
&lt;P&gt;Any thoughts on that?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 09:21:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1381997#M107643</guid>
      <dc:creator>Mahmoodn</dc:creator>
      <dc:date>2022-05-05T09:21:35Z</dc:date>
    </item>
    <item>
      <title>Re:clGetPlatformIDs returns error (no OpenCL platform)</title>
      <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1382065#M107651</link>
      <description>&lt;P&gt;Hello Mahmoodn,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the information provided&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will proceed to check the situation internally to confirm any steps or possible solutions and post back soon with more details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deivid A.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel Customer Support Technician&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2022 15:28:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1382065#M107651</guid>
      <dc:creator>DeividA_Intel</dc:creator>
      <dc:date>2022-05-05T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re:clGetPlatformIDs returns error (no OpenCL platform)</title>
      <link>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1383897#M107815</link>
      <description>&lt;P&gt;Hello Mahmoodn.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Based on your issue and the investigation performed, I recommend you to check with the Linus distributor forums to verify with them if the latest driver is installed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, I recommend you to check with the application/game developer to verify the compatibility with the operating system and the troubleshooting steps needed since OpenGL*, OpenCL*, and Vulkan* drivers must be installed separately, and are only distributed with the game or application that requires it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind that this thread will no longer be monitored by Intel.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deivid A.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel Customer Support Technician&amp;nbsp;&amp;nbsp;&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>Thu, 12 May 2022 18:20:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/clGetPlatformIDs-returns-error-no-OpenCL-platform/m-p/1383897#M107815</guid>
      <dc:creator>DeividA_Intel</dc:creator>
      <dc:date>2022-05-12T18:20:49Z</dc:date>
    </item>
  </channel>
</rss>

