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 views (last 30 days)
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 Comments
worku jifara
worku jifara on 10 Feb 2018
Edited: Walter Roberson on 20 Mar 2018
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) ;

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 20 Mar 2018
  5 Comments
Richa
Richa on 2 Apr 2018
Thanks Walter for your support. I had t reinstall windows and everything, after which it worked without any errors. Thanks a lot once again

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!