Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cuda kernel extern shared memory

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

dynamicReverse<<<1,n,n*sizeof(int)>>>(d_D, n);
Source by developer.nvidia.com #
 
PREVIOUS NEXT
Tagged: #cuda #kernel #extern #shared #memory
ADD COMMENT
Topic
Name
1+3 =