vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 752 forks source link

Matconvnet GPU version installation issue #841

Open sudipansaha opened 7 years ago

sudipansaha commented 7 years ago

Dear all, I am facing following error while installing matconvnet-1.0-beta23 GPU version using command vl_compilenn('enableGpu', true,'cudaMethod', 'nvcc','verbose', '2'); in Matlab R6016Bb Windows 10 OS. My mex compiler is Microsoft Visual C++ 2015 Professional. CPU version installs without any issue.

Error: Error using vl_compilenn>mex_link (line 548) im2row_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj subsample_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj copy_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj pooling_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj normalize_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj bnorm_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj tinythread.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj bilinearsampler_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj roipooling_cpu.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj imread.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj imread_gdiplus.obj : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in vl_nnnormalize.obj Creating library C:\Users\saha\Desktop\supervisedExptJan4\matconvnet-1.0-beta23\matlab\mex\vl_nnnormalize.lib and object C:\Users\saha\Desktop\supervisedExptJan4\matconvnet-1.0-beta23\matlab\mex\vl_nnnormalize.exp vl_nnnormalize.obj : warning LNK4217: locally defined symbol _snprintf imported in function "void cdecl vlmxError(enum VLMXErrorCode,char const *,...)" (?vlmxError@@YAXW4VLMXErrorCode@@PEBDZZ) vl_nnnormalize.obj : warning LNK4217: locally defined symbol _vsnprintf imported in function "void cdecl vlmxError(enum VLMXErrorCode,char const ,...)" (?vlmxError@@YAXW4VLMXErrorCode@@PEBDZZ) datacu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::error_condition cdecl std::_System_error_category::default_error_condition(int)const " (?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z) normalize_gpu.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) bnorm_gpu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) bilinearsampler_gpu.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) roipooling_gpu.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) im2row_gpu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) subsample_gpu.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) copy_gpu.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) pooling_gpu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnbnorm.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnbias.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (_imp?_Winerror_map@std@@YAPEBDH@Z) nnbilinearsampler.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnroipooling.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnfullyconnected.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnsubsample.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (_imp?_Winerror_map@std@@YAPEBDH@Z) nnpooling.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnnormalize.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) vl_nnnormalize.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) data.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const * cdecl std::_Winerror_map(int)" (_imp?_Winerror_map@std@@YAPEBDH@Z) datamex.obj : error LNK2001: unresolved external symbol "declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) nnconv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const cdecl std::_Winerror_map(int)" (imp_?_Winerror_map@std@@YAPEBDH@Z) bilinearsampler_gpu.obj : error LNK2019: unresolved external symbol imp_printf referenced in function "enum vl::ErrorCode __cdecl forward_backward<float,1,1>(class vl::Context &,float ,float ,float ,float const ,float const ,float const ,unsigned int64,unsigned int64,unsigned int64,unsigned int64,unsigned int64,unsigned int64,unsigned int64)" (??$forward_backward@M$00$00@@YA?AW4ErrorCode@vl@@AEAVContext@1@PEAM11PEBM22_K333333@Z) C:\Users\saha\Desktop\supervisedExptJan4\matconvnet-1.0-beta23\matlab\mex\vl_nnnormalize.mexw64 : fatal error LNK1120: 2 unresolved externals

JessicaGiven commented 7 years ago

Any solution now? I have the same problem.