I am using version 3.2 of cuda toolkit with GTX 470. I want to know if the loops like for, do-while and while supported in the device code or not.
Sorry for the double post. Happened by mistake.
Yes, loops are supported. Check any CUDA sample. CUDA C would be quite useless without loop constructs! :)
thanks a lot. I think I should have written a sample program itself :P