caffe-windows icon indicating copy to clipboard operation
caffe-windows copied to clipboard

编译caffelib时碰到,error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -gencode=.......

Open haowuliao opened this issue 9 years ago • 5 comments
trafficstars

具体报错是: 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.。。

haowuliao avatar Aug 13 '16 12:08 haowuliao

I have same problem with Visual Studio 2013, CUDA 8 and caffe while building libcaffe project. have anyone solved this problem?

izqilar avatar Feb 22 '17 03:02 izqilar

Same problem, not solved yet.

mtxing69 avatar Apr 11 '17 01:04 mtxing69

if someone has solutions?

justein avatar Jan 14 '18 11:01 justein

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编译就过了

EasonTong avatar Apr 08 '18 09:04 EasonTong

https://blog.csdn.net/mao_hui_fei/article/details/80326464

to-be-snail avatar Dec 06 '18 07:12 to-be-snail