Hi,
I am having some doubts about dynamic shared memory allocation.Can anyone help me.
1)if i have two shared memory array , can i define
extern shared int a_int;
extern shared int b_int;
Here a and b will point to the same memory or not?Whether it will create any coflict?
2)If i write a kernel function as follows
kernel<<<gd,bd,sharedMemSize>>> How can i decide the size of sharedmemory ?Whether the size of shared memory is for one block or entire grid?
3)If i am having 2 arrays ,each having 100000elements and if i give sharedmemorysize=16kB. What will be the size of sharedmemory allocated for each array?
Can anyone please clear my doubts…