Recently I changed to cuda toolkit 3.2.
After this change I can’t compile code which was able to compile on previous toolit.
I get link errors:
I have project which is defined as static libarry (*.lib).
I use /MD (Multithreaded DLL) option
I use Cuda Runtime APi build rule (v3.2) (previously I used cuda build rule v2.3.0)
In this project I have 3 .cu files:
c.cu <- this one is excluded from build, it contains device function
a and b have line: #include “c.cu”
when linking b.cu there is a warning that device function from c.cu is already defined in a.cu ; ignoring
then during library linking there is error that device function from c.cu is already defined in a.cu…
Well I think this error is kind of correct but before with previous toolkit I compiled it and it worked correctly - so what happened?
What I can do with it?
Please help i’ts my work on university and now i’ts broken because of new toolkit.
I seems that preaviously nvcc compiled all files from project in one time, and here it’s doing it separately