Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

extern __shared__ memory

__global__ void gpuFunc(int *dev_V, int n)
{
  extern __shared__ int s[];
  ...
}

gpuFunc<<<1,n,n*sizeof(int)>>>(dev_V, n);
Source by developer.nvidia.com #
 
PREVIOUS NEXT
Tagged: #extern #memory
ADD COMMENT
Topic
Name
7+4 =