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

조회 수: 1 (최근 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