title: Converting CUDA .cu file to PTX file
body: <p>I am having problem converting <code>.cu</code> to <code>.ptx</code>. I am using <code>nvcc</code> as follows:</p>
  
  <blockquote>
    <p>"C:\ Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc" -ptx -ccbin "C:\ Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -o foo.ptx foo.cu</p>
  </blockquote>
  
  <p>The following is displayed in return:</p>
  
  <blockquote>
  <pre><code>foo.cu
  c1xx : fatal error C1083: cannot open source file: 'foo.cu': No such file or directory
  </code></pre>
  </blockquote>
  
  <p><code>foo.cu</code> is located in the <code>\CUDA\v5.0\bin</code>.</p>