I’m new to CUDA, and there is a problem I face.
I always failed linking a program with int main() placed in .cpp file, but if I moved int main() to .cu file, the linking has no problem.
Currently I’m using Jared’s custom build rule.
It seemed strange to me. Is there anyone can explain?