我正在尝试使用Microsoft Visual Studio 2013使用Cuda支持编译OpenCV并获取以下编译错误消息:
22> CMake Error at cuda_compile_generated_pyrlk.cu.obj.cmake:264 (message):
22> Error generating file
22> F:/Nir/dev/opencv/build/visualStudioA/modules/cudaoptflow/CMakeFiles/cuda_compile.dir/src/cuda/Debug/cuda_compile_generated_pyrlk.cu.obj
22>
22>
22>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
有没有办法获取有关错误的更多信息? 增加日志详细程度,或者获取失败的nvcc命令可能很有用
答案 0 :(得分:0)
可以在CMakeCache.txt文件中启用Cuda编译详细程度:
//Print out the commands run while compiling the CUDA source file.
// With the Makefile generator this defaults to VERBOSE variable
// specified on the command line, but can be forced on with this
// option.
CUDA_VERBOSE_BUILD:BOOL=ON