I want to ask about some points are unclear in CUDA document
In the CUDA application
// Shared mem size is determined by the host app at run time
extern shared int s_int;
There 's some things that unclear to me :
I think when smth declared as extern it should be defined some where. So where it is
It say the mem size is determined by the host, so how it is determined
how can it guarantee that there 's no conflict between shared memory
For example if i have two shared memory array , can i define
extern shared int a_int;
extern shared int b_int;
OR should i define the size of shared memory for each array
How can set the alignment for the shared memory
There a CUT_BANK_CHECKER(sdata, index) macro, can any one explain how to use this
, just because i can see it a lot in the sample code