简体   繁体   English

在matlabr2016b,visualstudio2015 MatConvNet上编译的vl_compilenn('enableGpu',true)

[英]vl_compilenn ('enableGpu', true) on matlabr2016b, visualstudio2015 MatConvNet compile GPU

I have the follow configuration: 我有以下配置:

  1. Windows 10 64bit Windows 10 64位
  2. Matlab r2016b, NVidia GeForce 920MX, compute capability 5.0, toolkit version 7.5 Matlab r2016b,NVidia GeForce 920MX,计算能力5.0,工具包版本7.5
  3. Visual Studio 2015 for community Visual Studio 2015社区版
  4. MatConvNet beta 23 MatConvNet beta 23
  5. Cuda 8.0 (ga1 02/2017) CUDA 8.0(GA1 02/2017)
  6. cuDNN 6.0 (04/2017) cuDNN 6.0(04/2017)

When I compile with vl_compilenn (only cpu) the compile is correct. 当我使用vl_compilenn (only cpu)进行编译时,编译是正确的。
But when I compile with: 但是当我编译时:
vl_compilenn ('enableGpu', true)
or more specific with: 或更具体地讲:
vl_compilenn('enableGpu', true, 'cudaMethod', 'nvcc', 'cudaRoot', 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0', 'enableCudnn', true, 'cudnnRoot', 'C:\\..\\..\\..\\..\\..\\MatConvNet\\cuda')

I have the follow issue: 我有以下问题:

vl_compilenn: CUDA: MEX config file: 'C:\\Program Files\\MATLAB\\R2016b\\toolbox\\distcomp\\gpu\\extern\\src\\mex\\win64\\mex_CUDA_win64.xml' C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/../VC/bin/../../VC/INCLUDE\\crtdefs.h(10): fatal error C1083: Non Þ possibile aprire il file inclusione: 'corecrt.h': No such file or directory data.cu Error using vl_compilenn>nvcc_compile (line 540) Command "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin\\nvcc" -c "C:.........\\MatConvNet\\matconvnet-1.0-beta23\\matlab\\src\\bits\\data.cu" -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"C:..........\\MatConvNet\\cuda\\include" -DENABLE_DOUBLE -D__SSSE3__ -gencode=arch=compute_50,code=\\"sm_50,compute_50\\" -I"C:\\Program Files\\MATLAB\\R2016b\\extern\\include" -I"C:\\Program Files\\MATLAB\\R2016b\\toolbox\\distcomp\\gpu\\extern\\include" vl_compilenn:CUDA:MEX配置文件:'C:\\ Program Files \\ MATLAB \\ R2016b \\ toolbox \\ distcomp \\ gpu \\ extern \\ src \\ mex \\ win64 \\ mex_CUDA_win64.xml'C:/ Program Files(x86)/ Microsoft Visual Studio 14.0 /VC/../VC/bin/../../VC/INCLUDE\\crtdefs.h(10):致命错误C1083:不包含可能的所有文件:'corecrt.h':没有此类文件或目录使用vl_compilenn> nvcc_compile的data.cu错误(第540行)命令“ C:\\ Program Files \\ NVIDIA GPU Computing Toolkit \\ CUDA \\ v8.0 \\ bin \\ nvcc” -c“ C:......... \\ MatConvNet \\ matconvnet-1.0-beta23 \\ matlab \\ src \\ bits \\ data.cu“ -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I” C:.......... \\ MatConvNet \\ cuda \\ include“ -DENABLE_DOUBLE -D__SSSE3__ -gencode = arch = compute_50,code = \\“ sm_50,compute_50 \\” -I“ C:\\ Program Files \\ MATLAB \\ R2016b \\ extern \\ include” -I“ C:\\ Program Files \\ MATLAB \\ R2016b \\ toolbox \\ distcomp \\ GPU \\ EXTERN \\包括”
-gencode=arch=compute_50,code=\\"sm_50,compute_50\\" -O3 -Xcompiler /MD --compiler-bindir "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC..\\VC\\bin" -o "C:..........\\MatConvNet\\matconvnet-1.0-beta23\\matlab\\mex.build\\bits\\data.obj" failed. -gencode = arch = compute_50,code = \\“ sm_50,compute_50 \\” -O3 -Xcompiler / MD --compiler-bindir“ C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC .. \\ VC \\ bin” -o“ C:.......... \\ MatConvNet \\ matconvnet-1.0-beta23 \\ matlab \\ mex.build \\ bits \\ data.obj”失败。

Error in vl_compilenn (line 485) nvcc_compile(opts, srcs{i}, objfile, flags.nvcc) ; vl_compilenn(第485行)中的错误nvcc_compile(opts,srcs {i},objfile,flags.nvcc);

Also, i have copied the cudnn64_6.dll into the specific directory matlab/mex 另外,我已经将cudnn64_6.dll复制到了特定的目录matlab / mex

If you have an idea, i would be gratefull, since I have made several attempt with another version of matconvnet (example b24), but the issue is similar. 如果您有个主意,我将不胜感激,因为我尝试了另一版本的matconvnet(例如b24),但是问题是相似的。

Thank you very much. 非常感谢你。

I have solved used the follows libraries and software: 我已经解决了使用以下库和软件的问题:

  1. Matlab r2017a Matlab R2017a
  2. Visual studio 2015 Visual Studio 2015
  3. MatConvNet beta 24 MatConvNet beta 24
  4. Cuda 8.0.66 CUDA 8.0.66

Regards 问候

Probably there is no bin folder so Create 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC..\\VC\\bin' folder. 可能没有bin文件夹,所以请创建“ C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC .. \\ VC \\ bin”文件夹。 It will stay empty but compiling will finished. 它将保持为空,但编译将完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM