When using Linux/GCC I note that my C++ code can call out to my cuda files, and vice versa. The CUDA compiler uses the same name mangling as GCC on the C++ symbols, and everything works great.
When I use Visual Studio (2003) this no longer works. I need to make sure that any calls back and forth between my normal .cpp files and my .cu files go via ‘extern “C”’ functions.
Is there a way to control the name mangling that the CUDA compiler uses so that I don’t need to go via ‘extern “C”’ functions?
I tried setting the ‘–no-cpp-cudafe’ option, but this generated hundreds of errors coming from the system header files; so I gave up on this option.
Thanks in advance,