title: Using C++ with CUDA
body: <p>I'm just getting started using CUDA, wondering how best to use the <strong>host-side</strong> API with C++.  My initial inclination with any C API is to wrap it with inline functions and methods, adding exceptions on error returns so it blends well with the rest of my code.  I've looked briefly at thrust, but that seems to be a much higher level thing, and doesn't wrap the other APIs that you may need to use. </p>
  
  <p>Is there an existing wrapper that I'm missing, or is there some good reason to just use the C API directly that I've overlooked?</p>
  
  <p><strong>Update</strong>: I did find a library along the lines of what I was looking for called <a href="http://cudatemplates.sourceforge.net/" rel="nofollow"> &lt;Cuda&gt; templates</a>.  It's more abstract than I'd like, so I probably won't use it, but I'm putting here as a reference in case others have the same question. </p>