MSVC\14.12.25827\include\type_traits(504): [color=

Same problem with Visual Studio Pro 2017 Trail, community version could be supported but if you update visual studio you get the same problem!

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.1\0_Simple\matrixMul>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin\nvcc.exe” -gencode=arch=compute_30,code=“sm_30,compute_30” -gencode=arch=compute_35,code=“sm_35,compute_35” -gencode=arch=compute_37,code=“sm_37,compute_37” -gencode=arch=compute_50,code=“sm_50,compute_50” -gencode=arch=compute_52,code=“sm_52,compute_52” -gencode=arch=compute_60,code=“sm_60,compute_60” -gencode=arch=compute_61,code=“sm_61,compute_61” -gencode=arch=compute_70,code=“sm_70,compute_70” --use-local-env --cl-version 2017 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64” -x cu -I./ -I…/…/common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1/include" -I…/…/common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -Xcompiler “/wd 4819” -g -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/matrixMul.cu.obj “C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.1\0_Simple\matrixMul\matrixMul.cu”
matrixMul.cu
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(504): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(505): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(506): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(538): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(1043): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(1558): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(2371): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\type_traits(2371): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(543): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xtr1common(58): error: class “std::enable_if<, int>” has no member “type”
detected during instantiation of type “std::enable_if_t<, int>”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(543): here

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(3135): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(3662): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xtr1common(58): error: class “std::enable_if<, void>” has no member “type”
detected during instantiation of type “std::enable_if_t<, void>”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(3662): here

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xmemory0(390): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xmemory0(1002): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xmemory0(1322): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xstring(1718): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xutility(298): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\vector(495): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\algorithm(278): error: expression must have a constant value

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xstring(1780): error: more than one instance of overloaded function “std::_Deallocate_plain” matches the argument list:
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
argument types are: (std::_Rebind_alloc_t<std::_Rebind_alloc_t<std::allocator, char>, std::_Container_proxy>, std::_Container_proxy *)
detected during:
instantiation of “void std::_String_alloc<_Alloc_types>::_Free_proxy() [with _Alloc_types=std::_String_base_types<char, std::allocator>]”
(1728): here
instantiation of “std::_String_alloc<_Alloc_types>::~_String_alloc() [with _Alloc_types=std::_String_base_types<char, std::allocator>]”
(1909): here
instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::basic_string(const std::basic_string<_Elem, _Traits, _Alloc> &) [with _Elem=char, _Traits=std::char_traits, _Alloc=std::allocator]”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\system_error(503): here
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xstring(1780): error: more than one instance of overloaded function “std::_Deallocate_plain” matches the argument list:
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
argument types are: (std::_Rebind_alloc_t<std::_Rebind_alloc_t<std::allocator<__wchar_t>, __wchar_t>, std::_Container_proxy>, std::_Container_proxy *)
detected during:
instantiation of “void std::_String_alloc<_Alloc_types>::_Free_proxy() [with _Alloc_types=std::_String_base_types<__wchar_t, std::allocator<__wchar_t>>]”
(1728): here
instantiation of “std::_String_alloc<_Alloc_types>::~_String_alloc() [with _Alloc_types=std::_String_base_types<__wchar_t, std::allocator<__wchar_t>>]”
(1947): here
instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::basic_string(const _Elem *, std::basic_string<_Elem, _Traits, _Alloc>::size_type) [with _Elem=__wchar_t, _Traits=std::char_traits<__wchar_t>, _Alloc=std::allocator<__wchar_t>]”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\string(657): here

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xstring(1780): error: more than one instance of overloaded function “std::_Deallocate_plain” matches the argument list:
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
argument types are: (std::_Rebind_alloc_t<std::_Rebind_alloc_t<std::allocator<char16_t>, char16_t>, std::_Container_proxy>, std::_Container_proxy *)
detected during:
instantiation of “void std::_String_alloc<_Alloc_types>::_Free_proxy() [with _Alloc_types=std::_String_base_types<char16_t, std::allocator<char16_t>>]”
(1728): here
instantiation of “std::_String_alloc<_Alloc_types>::~_String_alloc() [with _Alloc_types=std::_String_base_types<char16_t, std::allocator<char16_t>>]”
(1947): here
instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::basic_string(const _Elem *, std::basic_string<_Elem, _Traits, _Alloc>::size_type) [with _Elem=char16_t, _Traits=std::char_traits<char16_t>, _Alloc=std::allocator<char16_t>]”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\string(662): here

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\xstring(1780): error: more than one instance of overloaded function “std::_Deallocate_plain” matches the argument list:
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
function template “void std::_Deallocate_plain(_Alloc &, _Alloc::value_type *)”
argument types are: (std::_Rebind_alloc_t<std::_Rebind_alloc_t<std::allocator<char32_t>, char32_t>, std::_Container_proxy>, std::_Container_proxy *)
detected during:
instantiation of “void std::_String_alloc<_Alloc_types>::_Free_proxy() [with _Alloc_types=std::_String_base_types<char32_t, std::allocator<char32_t>>]”
(1728): here
instantiation of “std::_String_alloc<_Alloc_types>::~_String_alloc() [with _Alloc_types=std::_String_base_types<char32_t, std::allocator<char32_t>>]”
(1947): here
instantiation of “std::basic_string<_Elem, _Traits, _Alloc>::basic_string(const _Elem *, std::basic_string<_Elem, _Traits, _Alloc>::size_type) [with _Elem=char32_t, _Traits=std::char_traits<char32_t>, _Alloc=std::allocator<char32_t>]”
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include\string(667): here

24 errors detected in the compilation of “C:/Users/Asrocki/AppData/Local/Temp/tmpxft_00003aec_00000000-14_matrixMul.compute_70.cpp1.ii”.