我在这里使用源代码.它是关于使用CUDA和OpenCV在GPU上进行背景减法的扩展GMM.我是CUDA的新手,我在MVS 10中遇到了错误
1>d:/MVS10 Projects/CudaTest/CudaTest/CvFastBgGMM_ver5.cu(227): error : identifier "CUDA_SAFE_CALL" is undefined
Run Code Online (Sandbox Code Playgroud)
1>
1> 5 errors detected in the compilation of
"C:/Users/DELL/AppData/Local/Temp/tmpxft_00000e34_00000000-5_CvFastBgGMM_ver5.cpp1.ii".
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets(592,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "D:\IDE\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"D:\SDK\OpenCV\opencv\build\include" -I"D:\SDK\OpenCV\opencv\build\include\opencv" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "x64\Debug" -maxrregcount=0 --machine 64 --compile -g -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Zi …Run Code Online (Sandbox Code Playgroud) cuda ×1