I was hoping someone could explain to me a bit about using C++ with cuda host code. Section 4.2.5 of the manual states that full C++ code is supported for the host. So does that mean that we can have host code with classes that directly call such routines as cudaHostMalloc etc?
When I try generating C++ classes and compiling as a .cu file, it compiles fine, but when I try to use it in an external .cpp program, I get errors.
I notice that in some SDK projects such as particle, the cuda* routines have been called by straight C code routines, and these in turn have been called by C++ class methods. I thought only kernel code needed to be straight C.