if I have a shared float var;
I cannot initialize a shared variable at declaration time like shared float var = 4; // not valid
one way what I think is to initialize it in the first line of my kernel, and then put __syncthreads();
is it a right approach or there is any other efficient way.
please let me know thanks