and I receive the following error message (sorry for the length texts...) when compiling subsample_gpu.cu. (Interestingly, the compilation is fine if I set the option 'debug' as true)
vl_compilenn: * CUDA configuration *
vl_compilenn: CUDA: seraching for the CUDA Devkit (use the option 'CudaRoot' to override):
| valid | ver | NVCC path |
| 1 | 60513 | C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc |
| 0 | 0 | . |
| 0 | 0 | C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe |
| 0 | 0 | C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\nvcc.exe |
| 1 | 60513 | C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe |
| 0 | 0 | C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\nvcc.exe |
| 0 | 0 | /usr/local/cuda/bin/nvcc |
vl_compilenn: CUDA: choosing NVCC compiler 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc' (version 60513)
vl_compilenn: CUDA: using CUDA Devkit 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5'.
vl_compilenn: CUDA: determining GPU compute capability (use the 'CudaArch' option to override)
vl_compilenn: CUDA: NVCC architecture string: '-gencode=arch=compute_30,code=\"sm_30,compute_30\" '.
vl_compilenn: CUDA: MEX config file: 'D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml'
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.61030 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
C/C++ COMPILER OPTIONS
-OPTIMIZATION-
/O1 minimize space /O2 maximize speed
/Ob<n> inline expansion (default n=0) /Od disable optimizations (default)
/Og enable global optimization /Oi[-] enable intrinsic functions
/Os favor code space /Ot favor code speed
/Ox maximum optimizations
/favor:<blend|AMD64|INTEL64|ATOM> select processor to optimize for, one of:
blend - a combination of optimizations for several different x64 processors
AMD64 - 64-bit AMD processors
INTEL64 - Intel(R)64 architecture processors
ATOM - Intel(R) Atom(TM) processors
-CODE GENERATION-
/GF enable read-only string pooling /Gm[-] enable minimal rebuild
/Gy[-] separate functions for linker /GS[-] enable security checks
/GR[-] enable C++ RTTI /GX[-] enable C++ EH (same as /EHsc)
/EHs enable C++ EH (no SEH exceptions) /EHa enable C++ EH (w/ SEH exceptions)
/EHc extern "C" defaults to nothrow
/fp:<except[-]|fast|precise|strict> choose floating-point model:
except[-] - consider floating-point exceptions when generating code
fast - "fast" floating-point model; results are less predictable
precise - "precise" floating-point model; results are predictable
strict - "strict" floating-point model (implies /fp:except)
/Qfast_transcendentals generate inline FP intrinsics even with /fp:except
/Qpar[-] enable parallel code generation
/Qpar-report:1 auto-parallelizer diagnostic; indicate parallelized loops
/Qpar-report:2 auto-parallelizer diagnostic; indicate loops not parallelized
/Qvec-report:1 auto-vectorizer diagnostic; indicate vectorized loops
/Qvec-report:2 auto-vectorizer diagnostic; indicate loops not vectorized
/GL[-] enable link-time code generation
/volatile:<iso|ms> choose volatile model:
iso - Acquire/release semantics not guaranteed on volatile accesses
ms - Acquire/release semantics guaranteed on volatile accesses
/GA optimize for Windows Application /Ge force stack checking for all funcs
/Gs[num] control stack checking calls /Gh enable _penter function call
/GH enable _pexit function call /GT generate fiber-safe TLS accesses
/RTC1 Enable fast checks (/RTCsu) /RTCc Convert to smaller type checks
/RTCs Stack Frame runtime checking /RTCu Uninitialized local usage checks
/clr[:option] compile for common language runtime, where option is:
pure - produce IL-only output file (no native executable code)
safe - produce IL-only verifiable output file
oldSyntax - accept the Managed Extensions syntax from Visual C++ 2002/2003
initialAppDomain - enable initial AppDomain behavior of Visual C++ 2002
noAssembly - do not produce an assembly
nostdlib - ignore the default \clr directory
/homeparams Force parameters passed in registers to be written to the stack
/GZ Enable stack checks (/RTCs)
/arch:AVX enable use of Intel(R) Advanced Vector Extensions instructions
-OUTPUT FILES-
/Fa[file] name assembly listing file /FA[scu] configure assembly listing
/Fd[file] name .PDB file /Fe<file> name executable file
/Fm[file] name map file /Fo<file> name object file
/Fp<file> name precompiled header file /Fr[file] name source browser file
/FR[file] name extended .SBR file /Fi[file] name preprocessed file
/doc[file] process XML documentation comments and optionally name the .xdc file
-PREPROCESSOR-
/AI<dir> add to assembly search path /FU<file> forced using assembly/module
/C don't strip comments /D<name>{=|#}<text> define macro
/E preprocess to stdout /EP preprocess to stdout, no #line
/P preprocess to file /Fx merge injected code to file
/FI<file> name forced include file /U<name> remove predefined macro
/u remove all predefined macros /I<dir> add to include search path
/X ignore "standard places"
-LANGUAGE-
/Zi enable debugging information /Z7 enable old-style debug info
/Zp[n] pack structs on n-byte boundary /Za disable extensions
/Ze enable extensions (default) /Zl omit default library name in .OBJ
/Zg generate function prototypes /Zs syntax check only
/vd{0|1|2} disable/enable vtordisp /vm<x> type of pointers to members
/Zc:arg1[,arg2] C++ language conformance, where arguments can be:
forScope[-] - enforce Standard C++ for scoping rules
wchar_t[-] - wchar_t is the native type, not a typedef
auto[-] - enforce the new Standard C++ meaning for auto
trigraphs[-] - enable trigraphs (off by default)
/ZW enable WinRT language extensions
/openmp enable OpenMP 2.0 language extensions
-MISCELLANEOUS-
@<file> options response file /?, /help print this help message
/bigobj generate extended object format /c compile only, no link
/errorReport:option Report internal compiler errors to Microsoft
none - do not send report
prompt - prompt to immediately send report
queue - at next admin logon, prompt to send report (default)
send - send report automatically
/FC use full pathnames in diagnostics /H<num> max external name length
/J default char type is unsigned
/MP[n] use up to 'n' processes for compilation
/nologo suppress copyright message
/sdl enable additional security features and warnings
/showIncludes show include file names /Tc<source file> compile file as .c
/Tp<source file> compile file as .cpp /TC compile all files as .c
/TP compile all files as .cpp /V<string> set version string
/w disable all warnings /wd<n> disable warning n
/we<n> treat warning n as an error /wo<n> issue warning n once
/w<l><n> set warning level 1-4 for n /W<n> set warning level (default n=1)
/Wall enable all warnings /WL enable one line diagnostics
/WX treat warnings as errors /Yc[file] create .PCH file
/Yd put debug info in every .OBJ /Yl[sym] inject .PCH ref for debug lib
/Yu[file] use .PCH file /Y- disable all PCH options
/Zm<n> max memory alloc (% of default) /Wp64 enable 64 bit porting warnings
-LINKING-
/LD Create .DLL /LDd Create .DLL debug library
/LN Create a .netmodule /F<num> set stack size
/link [linker options and libraries] /MD link with MSVCRT.LIB
/MT link with LIBCMT.LIB /MDd link with MSVCRTD.LIB debug lib
/MTd link with LIBCMTD.LIB debug lib
vl_compilenn: * Compiler and linker configurations *
vl_compilenn: intermediate build products directory: D:\CodeWork\git\matconvnet\matlab\mex\.build
vl_compilenn: MEX files: D:\CodeWork\git\matconvnet\matlab\mex/
vl_compilenn: MEX compiler options: -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
vl_compilenn: MEX linker options: -lmwblas -lgdiplus -LC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\lib\x64 -lcudart -lcublas -lgpu -largeArrayDims
vl_compilenn: MEX compiler options (CUDA): -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx -f D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml NVCCFLAGS=-gencode=arch=compute_30,code=\"sm_30,compute_30\" $NVCC_FLAGS
vl_compilenn: NVCC compiler options: -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\"
vl_compilenn: * Reading images *
vl_compilenn: vl_imreadjpeg enabled
vl_compilenn: image library: gdiplus
vl_compilenn: image library compile flags:
vl_compilenn: image library link flags: -lgdiplus
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\data.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\data.obj"
data.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\datamex.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\datamex.obj"
datamex.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\nnconv.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\nnconv.obj"
nnconv.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\nnfullyconnected.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\nnfullyconnected.obj"
nnfullyconnected.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\nnsubsample.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\nnsubsample.obj"
nnsubsample.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\nnpooling.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\nnpooling.obj"
nnpooling.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\nnnormalize.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\nnnormalize.obj"
nnnormalize.cu
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\im2row_cpu.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\subsample_cpu.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\copy_cpu.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\pooling_cpu.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\normalize_cpu.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: MEX CC: -outdir D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl D:\CodeWork\git\matconvnet\matlab\src\bits\impl\tinythread.cpp -c -DNDEBUG -DENABLE_GPU -D__SSSE3__ -largeArrayDims -cxx
Building with 'Microsoft Visual C++ 2012'.
MEX completed successfully.
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\impl\im2row_gpu.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl\im2row_gpu.obj"
im2row_gpu.cu
vl_compilenn: NVCC CC: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\impl\subsample_gpu.cu" -DNDEBUG -DENABLE_GPU -D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD -gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl\subsample_gpu.obj"
subsample_gpu.cu
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(117) : error C2039: 'io_errc' : is not a member of 'std::io_errc'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(117) : error C2146: syntax error : missing ';' before identifier '_Io_errc'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(117) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(117) : error C2365: 'std::io_errc' : redefinition; previous definition was 'namespace'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(127) : error C2039: 'io_errc' : is not a member of 'std::io_errc'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(127) : error C2882: 'io_errc' : illegal use of namespace identifier in expression
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(127) : error C2974: 'std::is_error_code_enum' : invalid template argument for '_Enum', type expected
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(121) : see declaration of 'std::is_error_code_enum'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(130) : error C2913: explicit specialization; 'std::is_error_code_enum' is not a specialization of a class template
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(148) : error C2079: 'make_error_code' uses undefined class 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(148) : error C2433: 'make_error_code' : 'inline' not permitted on data declarations
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(148) : error C2365: 'std::make_error_code' : redefinition; previous definition was 'function'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(147) : see declaration of 'std::make_error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(148) : error C2143: syntax error : missing ';' before 'throw'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(148) : error C2059: syntax error : 'throw'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(150) : error C2079: 'make_error_condition' uses undefined class 'std::error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(150) : error C2433: 'make_error_condition' : 'inline' not permitted on data declarations
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(150) : error C2365: 'std::make_error_condition' : redefinition; previous definition was 'function'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(149) : see declaration of 'std::make_error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(150) : error C2143: syntax error : missing ';' before 'throw'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(150) : error C2059: syntax error : 'throw'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(222) : error C2039: 'type' : is not a member of 'std::enable_if<_Test,_Ty>'
with
[
_Test=false,
_Ty=void
]
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(222) : error C2143: syntax error : missing ',' before '*'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(238) : error C2039: 'type' : is not a member of 'std::enable_if<_Test,_Ty>'
with
[
_Test=false,
_Ty=std::error_code
]
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(238) : error C2143: syntax error : missing ';' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(238) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(238) : error C2238: unexpected token(s) preceding ';'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(242) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(242) : error C2143: syntax error : missing ';' before '<end Parse>'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(245) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(252) : error C2988: unrecognizable template declaration/definition
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(252) : error C2059: syntax error : 'return'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(252) : error C2238: unexpected token(s) preceding ';'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(255) : error C2143: syntax error : missing ';' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(213) : error C2614: 'std::error_code' : illegal member initialization: '_Mycat' is not a base or member
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(213) : error C2614: 'std::error_code' : illegal member initialization: '_Myval' is not a base or member
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(218) : error C2614: 'std::error_code' : illegal member initialization: '_Mycat' is not a base or member
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(218) : error C2614: 'std::error_code' : illegal member initialization: '_Myval' is not a base or member
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(232) : error C2065: '_Myval' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(233) : error C2065: '_Mycat' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(256) : error C2270: 'category' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(256) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(257) : error C2065: '_Mycat' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(260) : error C2270: 'default_error_condition' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(263) : error C2270: 'message' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(264) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(269) : error C2833: 'operator _Bool_type' is not a recognized operator or type
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(269) : error C2988: unrecognizable template declaration/definition
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(269) : error C2059: syntax error : 'newline'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(270) : error C2143: syntax error : missing ';' before '{'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(270) : error C2447: '{' : missing function header (old-style formal list?)
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(275) : error C2270: '!' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(275) : error C2809: 'operator !' has no formal parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(276) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(280) : error C2270: '==' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(280) : error C2805: binary 'operator ==' has too few parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(281) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(281) : error C2039: 'category' : is not a member of 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(205) : see declaration of 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(286) : error C2270: '!=' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(286) : error C2805: binary 'operator !=' has too few parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(287) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(291) : error C2270: '<' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(291) : error C2805: binary 'operator <' has too few parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(292) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(292) : error C2039: 'category' : is not a member of 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(205) : see declaration of 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(205) : see declaration of 'std::error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(298) : error C2988: unrecognizable template declaration/definition
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(298) : error C2059: syntax error : 'private'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(400) : error C2653: 'error_category' : is not a class or namespace name
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(401) : error C2270: 'default_error_condition' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(401) : error C2079: 'default_error_condition' uses undefined class 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(402) : error C2955: 'error_condition' : use of class template requires template argument list
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(303) : see declaration of 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(402) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(406) : error C2653: 'error_category' : is not a class or namespace name
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(408) : error C2270: 'equivalent' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(409) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(413) : error C2653: 'error_category' : is not a class or namespace name
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(413) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(413) : error C2143: syntax error : missing ',' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(415) : error C2270: 'equivalent' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(416) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(416) : error C2065: '_Code' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(416) : error C2065: '_Errval' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(420) : error C2653: 'error_code' : is not a class or namespace name
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(421) : error C2270: 'default_error_condition' : modifiers not allowed on nonmember functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(421) : error C2079: 'default_error_condition' uses undefined class 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(422) : error C2355: 'this' : can only be referenced inside non-static member functions
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(426) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(426) : error C2143: syntax error : missing ',' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(429) : error C2803: 'operator ==' must have at least one formal parameter of class type
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(429) : error C2805: binary 'operator ==' has too few parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(430) : error C2065: '_Left' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(430) : error C2065: '_Right' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(435) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(435) : error C2143: syntax error : missing ',' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(438) : error C2065: '_Right' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(438) : error C2027: use of undefined type 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(303) : see declaration of 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(303) : see declaration of 'error_condition'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(443) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(443) : error C2143: syntax error : missing ',' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(446) : error C2803: 'operator !=' must have at least one formal parameter of class type
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(446) : error C2805: binary 'operator !=' has too few parameters
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(447) : error C2065: '_Left' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(447) : error C2065: '_Right' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(451) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(451) : error C2143: syntax error : missing ',' before '&'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(454) : error C2065: '_Right' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(458) : error C2146: syntax error : missing ';' before identifier 'make_error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(458) : error C2065: 'generic_errno' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(458) : error C2146: syntax error : missing ')' before identifier '_Errno'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(458) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(458) : error C2059: syntax error : ')'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(459) : error C2143: syntax error : missing ';' before '{'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(459) : error C2447: '{' : missing function header (old-style formal list?)
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(463) : error C2146: syntax error : missing ';' before identifier 'make_error_code'
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(463) : error C2065: '_Io_errc' : undeclared identifier
D:/WorkStudy/Microsoft Visual Studio 11.0/VC/bin/amd64//../../../VC/INCLUDE\system_error(463) : fatal error C1003: error count exceeds 100; stopping compilation
Error using vl_compilenn>nvcc_compile (line 446)
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc" -c "D:\CodeWork\git\matconvnet\matlab\src\bits\impl\subsample_gpu.cu" -DNDEBUG -DENABLE_GPU
-D__SSSE3__ -I"D:\WorkStudy\MATLAB\R2014a\extern\include" -I"D:\WorkStudy\MATLAB\R2014a\toolbox\distcomp\gpu\extern\include" -Xcompiler /MD
-gencode=arch=compute_30,code=\"sm_30,compute_30\" -o "D:\CodeWork\git\matconvnet\matlab\mex\.build\bits\impl\subsample_gpu.obj" failed.
Error in vl_compilenn (line 392)
nvcc_compile(opts, srcs{i}, toobj(bld_dir,srcs{i}), flags.nvcc) ;
Error in temp_compile (line 3)
vl_compilenn('enableGpu',true, 'cudaMethod','nvcc', 'debug', false, 'verbose',1);
Hi all,
The compilation option is:
and I receive the following error message (sorry for the length texts...) when compiling
subsample_gpu.cu
. (Interestingly, the compilation is fine if I set the option'debug'
astrue
)