title: CUDA kernel doesn't launch
body: <p>My problem is very much like this <a href="https://stackoverflow.com/questions/9519272/cuda-kernel-not-launching">one</a>. I run the simplest CUDA program but the kernel doesn't launch. However, I am sure that my CUDA installation is ok, since I can run complicated CUDA projects consisting of several files (which I took from someone else) with no problems. In these projects, compilation and linking is done through makefiles with a lot of flags. I think the problem is in the correct flags to use while compiling. I simply use a command like this: 
  <code>nvcc -arch=sm_20 -lcudart test.cu</code> with a such a program (to run on a linux machine):</p>
  
  <pre><code> __global__ void myKernel() 
  { 
  
      cuPrintf("Hello, world from the device!\n"); 
  
  
  } 
  int main() 
  { 
      cudaPrintfInit(); 
      myKernel&lt;&lt;&lt;1,10&gt;&gt;&gt;(); 
      cudaPrintfDisplay(stdout, true);    
      cudaPrintfEnd(); 
  } 
  </code></pre>
  
  <p>The program compiles correctly. When I add cudaMemcpy() operations, it returns no error. Any suggestion on why the kernel doesn't launch ? </p>