hello guys i am compiling matconvnet with GPU, after VS, CUDA, CudNN, mex -setup C++, all are adjusted i try to compile it with vl_compilenn('verbose', 1), i got the following error. i dont know really what is the source of the problem

3 次查看(过去 30 天)
Error using mex
In file included from
F:\matconvnet-1.0-beta25\matlab\src\bits\data.cu:13:0,
from F:\matconvnet-1.0-beta25\matlab\src\bits\data.cpp:4:
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:73:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(char) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:73:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:77:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(float) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:77:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:81:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(double) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:81:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp: In function 'size_t
vl::getDataTypeSizeInBytes(vl::DataType)':
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:91:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)0u>'
case VLDT_Char: return DataTypeTraits<VLDT_Char>::size ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:92:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)1u>'
case VLDT_Float: return DataTypeTraits<VLDT_Float>::size ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:93:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)2u>'
case VLDT_Double: return DataTypeTraits<VLDT_Double>::size ;
^
Error in vl_compilenn>mex_compile (line 583)
mex(args{:}) ;
Error in vl_compilenn (line 492)
mex_compile(opts, srcs{i}, objfile, flags) ;
  2 个评论
worku jifara
worku jifara 2018-2-10
编辑:Walter Roberson 2018-3-20
Failed to run C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/mingw_492.instrset/VC/bin (The system cannot find the file specified.
).
Error using vl_compilenn>nvcc_compile (line 615)
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc" -c -o
"F:\matconvnet-1.0-beta25\matlab\mex\.build\bits\data.obj"
"F:\matconvnet-1.0-beta25\matlab\src\bits\data.cu" -DENABLE_GPU -DENABLE_DOUBLE -DENABLE_CUDNN
-I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -O -DNDEBUG -D_FORCE_INLINES
--std=c++11 -I"C:\Program Files\MATLAB\R2015b\extern\include" -I"C:\Program
Files\MATLAB\R2015b\toolbox\distcomp\gpu\extern\include"
-gencode=arch=compute_61,code=\"sm_61,compute_61\" --compiler-options=/MD
--compiler-bindir="C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\mingw_492.instrset\VC\bin"
failed.
Error in vl_compilenn (line 487)
nvcc_compile(opts, srcs{i}, objfile, flags) ;

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2018-3-20
  5 个评论
Richa
Richa 2018-4-2
Thanks Walter for your support. I had t reinstall windows and everything, after which it worked without any errors. Thanks a lot once again

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with GPU Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by