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.
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????