I have a kernel like this :
global void device_kernel(float *Vec_x , float *Vec_y ,float *Vec_z)
It was working without errors .
I changed it to include two more arguments :
global void device_kernel(float *Vec_x , float *Vec_y , float *Vec_z , unsigned int c , int B)
I declared c and b as
device unsigned int c;
device int b ;
The compiler shows no error , but the execution gives the error
“unspecified launch failure”
But I checked that the kernel is launched correctly the first time , and only after the execution this error occur .
Inside the kernel , I used c and b as normal variables .
What is wrong with it ???