caffe-windows
caffe-windows copied to clipboard
编译caffelib时碰到,error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -gencode=.......
具体报错是: 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets(599,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -gencode=arch=compute_30,code="sm_30,compute_30" --use-local-env --cl-version 2013 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -I../../3rdparty/include -I../../src -I../../include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -Xcudafe "--diag_suppress=exception_spec_override_incompat --diag_suppress=useless_using_declaration --diag_suppress=field_without_dll_interface" -D_SCL_SECURE_NO_WARNINGS -DGFLAGS_DLL_DECL= -D_VARIADIC_MAX=10 -DWIN32 -DNDEBUG -D_CONSOLE -DUSE_CUDNN -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MD " -o Release\gram_layer.cu.obj "C:\Anaconda3\envs\py2\Lib\site-packages\caffe-windows-master\src\caffe\layers\gram_layer.cu"" exited with code 2.
我用的是win7 64位,cuda8.0,vs 2013.。。
I have same problem with Visual Studio 2013, CUDA 8 and caffe while building libcaffe project. have anyone solved this problem?
Same problem, not solved yet.
if someone has solutions?
There is some problems with your file which is called cudnn.hpp , at 114 rows, you lost a parameter , it is a data type for convolution, you can add a parameter for the function cudnnSetConvolution2dDescriptor , behind the CUDNN_CROSS_CORRELATION, you should add a type CUDNN_DATA_DOUBLE 这个问题其实来自于你的cudnn.cpp,这个文件第144行的cudnnSetConvolution2dDescriptor函数里面缺参数,你在这个函数参数里添加一个CUDNN_DATA_DOUBLE编译就过了
https://blog.csdn.net/mao_hui_fei/article/details/80326464