Hello,
Once i specify the dynamic shared memory size ((Ns1 + Ns2 + Ns3) * sizeof(double)) in the kernel launch configuration, is it possible to use multiple dynamic shared array inside the kernel like this :
extern __shared__ double SharedMemory1_Array[]; extern __shared__ double SharedMemory2_Array[]; extern __shared__ double SharedMemory3_Array[];
Regards
You could use a struct type.
But should be only one dynamic shared memory variable or it can be more than that?
All would point to the same address. The struct would contain all 3 arrays.
You can access those either over the
a) struct
b) use a pointer or C++ reference
c) if the arrays have the same type, with an offset on the index
Thanks