Hello everybody. I’m newbie in cuda C and I am not understand how can I use shared memory in cuda.
So I have a kernel like this:
global void start ( )
{
__shared__ int count;
count++;
__syncthreads();
cuPrintf("%d\n", count );
}
The problem is: I can’t increment the “count variableâ€.
In each execution of thread it take a value between 0 and 1.
Please, show-me how can I do that?
I’m Brasilia. Excuse me for possible grammar errors.
Thanks so much.