I made a little templated CudaArray class to simplify allocation and transfers of arrays to and from the card, inside .cu files. This works fine as long as these array objects are stack allocated, and the code is a lot cleaner and more readable.
But when using dynamically allocated or statically initialized C++ objects in .cu files I get linking errors. I assume this is because the compiler doesn’t generate initializers that are compatible with the MSVC linker, or that for some reason they simply aren’t generated since it thinks it’s C, somehow.
Is better C++ support coming anytime soon?