title: adding a cuda file to an existing c project in visual studio
body: <p>I am trying to add a CUDA file to my existing C++ Visual Studio project. I have the CUDA 5.0 SDK installed, I have created a new .cu file and also set its Item Type to CUDA/C++ in the CUDA file properties.  But it looks like it just does not compile giving errors that say that the compiler does not recognize the CUDA keywords. One of the errors I get is:</p>
  
  <p>error C2065: 'threadIdx' : undeclared identifier</p>
  
  <p>Any suggestions?</p>