title: Hello World CUDA compilation issues
body: <p>I'm using the CUDA by Example book and attempting to compile the first <em>real</em> example in the book. I'm on OSX 10.9.2:</p>
  
  <p>My source is:</p>
  
  <pre><code>@punk ~/Documents/Projects/CUDA$ /Developer/NVIDIA/CUDA-6.0/bin/nvcc hello.c
  nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.
  hello.c:6:1: error: unknown type name '__global__'
  __global__ void kernel(void) {
  ^
  hello.c:6:12: error: expected identifier or '('
  __global__ void kernel(void) {
             ^
  hello.c:10:3: error: use of undeclared identifier 'kernel'
    kernel&lt;&lt;&lt;1,1&gt;&gt;&gt;();
    ^
  hello.c:10:11: error: expected expression
    kernel&lt;&lt;&lt;1,1&gt;&gt;&gt;();
            ^
  hello.c:10:17: error: expected expression
    kernel&lt;&lt;&lt;1,1&gt;&gt;&gt;();
                  ^
  hello.c:10:19: error: expected expression
    kernel&lt;&lt;&lt;1,1&gt;&gt;&gt;();
                    ^
  6 errors generated.
  </code></pre>
  
  <p>And my source is simply:</p>
  
  <pre><code>punk ~/Documents/Projects/CUDA$ cat hello.c
  
  #include &lt;cuda.h&gt;
  #include &lt;stddef.h&gt;
  #include &lt;stdio.h&gt;
  //#include "common/book.h"
  
  __global__ void kernel(void) {
  }
  
  int main(void) {
    kernel&lt;&lt;&lt;1,1&gt;&gt;&gt;();
  
    printf("oh hai\n");
    return 0;
  }
  </code></pre>
  
  <p>I also tested the <code>/Developer/NVIDIA/CUDA-6.0/samples/1_Utilities/deviceQuery</code> example and that built and ran fine. </p>
  
  <p>Any help is greatly appreciated! TIA!</p>