cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

lsolano
Journeyman III

Problem using oclGetPlatformIDs

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 ?

Thanks

0 Likes
2 Replies
nou
Exemplar

remove o at the begining. and use plain OpenCL or C++ bindings.

0 Likes

Thanks nou

0 Likes