Wyk3d

clGetPlatformIDs fails with unknown error code on Windows

Discussion created by Wyk3d on Mar 27, 2010
Latest reply on Mar 27, 2010 by nou

Hello

I'm trying to run the SDK Samples on Windows Vista using Visual Studio 2008. My laptop has an Intel Core 2 Duo P8400 and an onboard graphics accelerator so I'm trying to run the samples in CPU mode (--device cpu). The applications fail to start, giving the following message:

Error: clGetPlatformIDs failed. Error code : unknown error code

The error is thrown at the line

status = clGetPlatformIDs(0, NULL, &numPlatforms);

where status gets the value -1001.

I've seen other posts about this error but they were all on linux. Am I doing something wrong ?

Thanks in advance,

Istvan

Outcomes