2 Replies Latest reply on Aug 23, 2011 1:55 PM by akhal

    clGetDeviceIDs return error code -1

    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

        • clGetDeviceIDs return error code -1
          genaganna

           

          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.

            • clGetDeviceIDs return error code -1
              akhal

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