cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

sajis997
Adept I

invalid command queue with clFinish()

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

0 Likes
1 Reply
developer
Adept II

Re: invalid command queue with clFinish()

This usually means that the kernel has stepped past its allocated memory (or) did something really bad ( seg-fault, null pointer).

Thats when you get error message like this. It has nothing to do with cmd-q

-

Bruha..

0 Likes