1 Reply Latest reply on Feb 5, 2014 7:08 AM by developer

    invalid command queue with clFinish()

    sajis997

      Hi forum,

       

      I am getting this error with the following command:

       

      //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

         //wait for the calculations to finish

         errNum = clFinish(commandQueue);

       

       

         if(errNum != CL_SUCCESS)

         {

            std::cerr << "the clFinish() failed  in the diffuse projection stage at forward FFT of X-component: "

        <<  get_error_string(errNum) << std::endl;

            cleanup(EXIT_FAILURE);

         }  

       

      //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

       

      I have checked the command queue creation and it was CL_SUCCESS.

       

      Any hint on where should i look into ?

       

       

      Thanks