<?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 clGetPlatformIDs() returns -1001? in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetPlatformIDs-returns-1001/m-p/789160#M579</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;The error code values are defined in opencl.h&lt;BR /&gt;It look like your platform is not configured properly.&lt;BR /&gt;Evgeny&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2011 11:36:53 GMT</pubDate>
    <dc:creator>Evgeny_F_Intel</dc:creator>
    <dc:date>2011-11-20T11:36:53Z</dc:date>
    <item>
      <title>clGetPlatformIDs() returns -1001?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetPlatformIDs-returns-1001/m-p/789159#M578</link>
      <description>Hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I was just to learn about OpenCL. I follow the OpenCL Spec to learn and I use OpenCL SDK of Intel. But I am blocked by the first API I tried for OpenCL:clGetPlatformIDs().&lt;/DIV&gt;&lt;DIV&gt;This function will return me -1001 if the parameters are correct. What does -1001 mean?&lt;/DIV&gt;&lt;DIV&gt;See following code for reference:&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]#include &lt;CL&gt;

#pragma comment(lib,"OpenCL.lib")

int main(int argc, _TCHAR* argv[])
{
	cl_int err_code;
	cl_uint nplatforms;

	err_code = clGetPlatformIDs(0, NULL, &amp;amp;nplatforms);
	if (err_code != CL_SUCCESS) {
		printf( "Error:%d\n", err_code);
	}

	return 0;
}[/cpp]&lt;/CL&gt;&lt;/PRE&gt; By the way, where is the document to introduct about theintelocl.lib functions (I assume it is an extension of OpenCL) ?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Shenghong&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Nov 2011 04:51:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetPlatformIDs-returns-1001/m-p/789159#M578</guid>
      <dc:creator>Shenghong_G_Intel</dc:creator>
      <dc:date>2011-11-20T04:51:49Z</dc:date>
    </item>
    <item>
      <title>clGetPlatformIDs() returns -1001?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clGetPlatformIDs-returns-1001/m-p/789160#M579</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;The error code values are defined in opencl.h&lt;BR /&gt;It look like your platform is not configured properly.&lt;BR /&gt;Evgeny&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2011 11:36:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clGetPlatformIDs-returns-1001/m-p/789160#M579</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-11-20T11:36:53Z</dc:date>
    </item>
  </channel>
</rss>

