Extern __shared__ memori
__global__ void gpuFunc(int *dev_V, int n)
{
extern __shared__ int s[];
...
}
gpuFunc<<<1,n,n*sizeof(int)>>>(dev_V, n);
Arthur Elskens
__global__ void gpuFunc(int *dev_V, int n)
{
extern __shared__ int s[];
...
}
gpuFunc<<<1,n,n*sizeof(int)>>>(dev_V, n);