<?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: OpenCL CPU runtime cannot find any platforms in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417343#M7099</link>
    <description>&lt;P&gt;Hi, did you source the setvars.sh configuration file to setup your oneAPI installation?&lt;/P&gt;
&lt;P&gt;On my Ubuntu system this is done via:&lt;/P&gt;
&lt;PRE&gt;$ source /opt/intel/oneapi/setvars.sh&lt;/PRE&gt;
&lt;P&gt;For more information please see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos/use-a-config-file-for-setvars-sh-on-linux-or-macos.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos/use-a-config-file-for-setvars-sh-on-linux-or-macos.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I've found this is required to setup some library paths for the CPU OpenCL implementation.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 15:02:10 GMT</pubDate>
    <dc:creator>Ben_A_Intel</dc:creator>
    <dc:date>2022-09-26T15:02:10Z</dc:date>
    <item>
      <title>OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1408317#M7085</link>
      <description>&lt;P&gt;I am trying to test Intel's CPU runtime for OpenCL but my test program fails to get any platforms on the system and "&lt;SPAN class="s1"&gt;clGetPla&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;tformIDs" returns "&lt;SPAN&gt;CL_PLATFORM_NOT_FOUND_KHR&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;To prepare the system I have followed the instructions to install the runtime through oneapi instructions, so I have installed:&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;sudo yum install intel-oneapi-runtime-opencl&lt;BR /&gt;sudo yum install intel-oneapi-runtime-compilers.x86_64&lt;BR /&gt;sudo yum install opencl-headers.noarch&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;My Cpu is&amp;nbsp;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;&lt;SPAN class="s1"&gt;Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;which seems to have the requirements for the X86 CPU runtime.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;The code I am test with is just a simple&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;#include&amp;lt;CL/cl.h&amp;gt;
#include&amp;lt;iostream&amp;gt;

using namespace std;

int main() {
    unsigned int num;
    cout &amp;lt;&amp;lt; clGetPlatformIDs(0, NULL, &amp;amp;num) &amp;lt;&amp;lt; endl;
    cout &amp;lt;&amp;lt; num &amp;lt;&amp;lt; endl;
    return 0;
}&lt;/PRE&gt;
&lt;P&gt;Building with&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;g++ test.cpp -o test -lOpenCL&lt;/PRE&gt;
&lt;P&gt;And the call returns error "-1001" which is "&lt;SPAN class="s2"&gt;&lt;SPAN&gt;CL_PLATFORM_NOT_FOUND_KHR&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;BR /&gt;Using &lt;STRONG&gt;strace&lt;/STRONG&gt; I can see that these related files are being loaded:&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;/opt/intel/oneapi/lib/libOpenCL.so.1
/etc/OpenCL/vendors/intel64.icd
/opt/intel/oneapi/lib/intel64/libintelocl.so&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Am i missing a step? Something else I need to install?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.: Installing the complete base toolkit&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;sudo yum install intel-basekit&lt;/PRE&gt;
&lt;P&gt;Did not change anything.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 20:54:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1408317#M7085</guid>
      <dc:creator>AfshinArefi</dc:creator>
      <dc:date>2022-08-15T20:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1411399#M7089</link>
      <description>&lt;P&gt;Manually installing the older package for the runtime&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;l_opencl_p_18.1.0.015.tgz&lt;/PRE&gt;
&lt;P&gt;Works well and as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea what is the problem with the new packages based on the oneAPI?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:39:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1411399#M7089</guid>
      <dc:creator>AfshinArefi</dc:creator>
      <dc:date>2022-08-29T12:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1414614#M7095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me the version of your OS?&amp;nbsp; You can refer to the system requirements and check if your OS meets the requirements.&amp;nbsp; &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-base-toolkit-system-requirements.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-base-toolkit-system-requirements.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:13:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1414614#M7095</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2022-09-14T06:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417330#M7098</link>
      <description>&lt;P&gt;Thank you for your response. My OS is "&lt;SPAN class="s1"&gt;&lt;STRONG&gt;CentOS Linux release 7.9.2009 (Core)&lt;/STRONG&gt;" which is in the supported OSes I think.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 14:22:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417330#M7098</guid>
      <dc:creator>AfshinArefi</dc:creator>
      <dc:date>2022-09-26T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417343#M7099</link>
      <description>&lt;P&gt;Hi, did you source the setvars.sh configuration file to setup your oneAPI installation?&lt;/P&gt;
&lt;P&gt;On my Ubuntu system this is done via:&lt;/P&gt;
&lt;PRE&gt;$ source /opt/intel/oneapi/setvars.sh&lt;/PRE&gt;
&lt;P&gt;For more information please see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos/use-a-config-file-for-setvars-sh-on-linux-or-macos.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos/use-a-config-file-for-setvars-sh-on-linux-or-macos.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I've found this is required to setup some library paths for the CPU OpenCL implementation.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 15:02:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417343#M7099</guid>
      <dc:creator>Ben_A_Intel</dc:creator>
      <dc:date>2022-09-26T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCL CPU runtime cannot find any platforms</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417495#M7100</link>
      <description>&lt;P&gt;I'm sorry to tell you that the OpenCL CPU Runtime in oneAPI Base Toolkit doesn't support&amp;nbsp; Centos 7.&amp;nbsp; OpenCL CPU Runtime is shipped with &lt;SPAN&gt;Intel® oneAPI DPC++/C++ Compiler, and for the system requirements of the compiler, please refer to&amp;nbsp; &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-dpcpp-system-requirements.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-dpcpp-system-requirements.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 00:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-CPU-runtime-cannot-find-any-platforms/m-p/1417495#M7100</guid>
      <dc:creator>cw_intel</dc:creator>
      <dc:date>2022-09-27T00:48:00Z</dc:date>
    </item>
  </channel>
</rss>

