Looks like compiling and linking multiple .cu and .cpp file into a shared module ( or executable) is still not possible. Tried various nvcc options such as “-dc” “-dlink” to generate the object module and link that with g++ objects. There is always some not found variables.
It’s possible.
https://stackoverflow.com/questions/35897002/cuda-nvcc-building-chain-of-libraries/36103566#36103566
If you want a specific answer, I suggest providing a short, complete (all the source files, and the makefile), specific example, and show the failing compile output.