cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

akhal
Journeyman III

clGetDeviceIDs return error code -1

Hej

I have run some code successfully using AMD platform, but when I run the same OpenCL code on Nvidia platform, my clGetDeviceIDs command with Nvidia platform gives me error code -1, what this means? Thanks in advance

0 Likes
2 Replies
genaganna
Journeyman III

Originally posted by: akhal Hej

 

I have run some code successfully using AMD platform, but when I run the same OpenCL code on Nvidia platform, my clGetDeviceIDs command with Nvidia platform gives me error code -1, what this means? Thanks in advance

 

By default, AMD Sample uses AMD platform. You need to use -p or --platformId option to select Nvidia platform.

0 Likes

I have selected other platforms like Intel or Nvidia in other programs successfully. But in this particular case, when I select Nvidia platform, it gets successful but when I am querring for devices clGetDeviceIDs which I have done fine in other cases, in this case it returns error code -1... what this error code means????

0 Likes