I have a solution with two section, an Unmanaged dll which has a CUDA part and a Managed dll that calls the Unmanaged dll.
The problem is when I try to compile it, all the CUDA extensions in .cu files have error. It seems that it can’t find nvcc or VC tries to compile them as an .cpp files.
Here is my build config for .cu files:
“(CUDA_BIN_PATH)\nvcc.exe" -ccbin "(VCInstallDir)bin” -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/RTC1,/MTd -I"(CUDA_INC_PATH)" -I./ -I../../common/inc -o (ConfigurationName)$(InputName).obj $(InputFileName)
Is there any missing or wrong flag? :unsure: