- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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().
This function will return me -1001 if the parameters are correct. What does -1001 mean?
See following code for reference:
[cpp]#includeBy the way, where is the document to introduct about theintelocl.lib functions (I assume it is an extension of OpenCL) ?#pragma comment(lib,"OpenCL.lib") int main(int argc, _TCHAR* argv[]) { cl_int err_code; cl_uint nplatforms; err_code = clGetPlatformIDs(0, NULL, &nplatforms); if (err_code != CL_SUCCESS) { printf( "Error:%d\n", err_code); } return 0; }[/cpp]
Thanks,
Shenghong
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The error code values are defined in opencl.h
It look like your platform is not configured properly.
Evgeny
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page