Problem using oclGetPlatformIDs

Discussion created by lsolano on Feb 10, 2010
Latest reply on Feb 10, 2010 by lsolano

I'm trying to compile and run a simple example for adding two vectors.  At the beginning of my program I need to get the platform id, which is done as:


cl_int result;
cl_uint numPlatforms;
cl_platform_id clSelectedPlatformID = NULL;
result = oclGetPlatformIDs (0, NULL, &numPlatforms);

the compiler gives the following error:
error: ‘oclGetPlatformIDs’ was not declared in this scope

NVidia provides the file oclUtils.h where the function oclGetPlatformIDs is defined, but that file it is not provided by ATI.

Which file should I include to solve this problem ?