title: CUDA intrinsic functions are undefined according to visual studio's Intellisense
body: <p>I'm having a compilation error on visual Studio 2017 with the following CUDA (toolkit version 9.0) code:</p>
  
  <pre><code>__global__ void increment_atomic(int *g) {
  // which thread is this?
  int i = blockIdx.x *blockDim.x + threadIdx.x;
  
  // each thread to increment consecutive element, wrapping at ARRAY_SIZE
  i = i % ARRAY_SIZE;
  atomicAdd(&amp; g[i], 1);}
  </code></pre>
  
  <p>the atomicAdd function is not recognized as identifier.
  based on suggestion I found i also check the CUDA C/C++ --> Device parameter which is set as hereafter:
  <a href="https://i.stack.imgur.com/CrArQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CrArQ.png" alt="enter image description here"></a></p>
  
  <p>I also try with compute_20, sm_21 but with no result, Some idea about the correct configuration of VS?</p>