Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile MKL-DNN on Windows problems #101

Closed
adhere opened this issue Aug 11, 2017 · 1 comment
Closed

Compile MKL-DNN on Windows problems #101

adhere opened this issue Aug 11, 2017 · 1 comment
Labels

Comments

@adhere
Copy link

adhere commented Aug 11, 2017

I want to compile MKL-DNN on windows for Intel Caffe. I read those issues Windows or OSX Support? , so many error when compiling on windows with visual studio, mkl-dnn windows port . And I see the current MKL-DNN CMakeLists.txt contains a setting for Windows(if(WIN32)).

I believe the current MKL-DNN supporting Windows. Right?

My development environment is:
OS:Windows 7 Ultimate SP1 64 (CPU is Intel Xeon E3-1231 V3)
IDE: VS2013
Toolset: parallel_studio_xe_2017_update4_setup

What I do:

  1. git clone https://github.com/01org/mkl-dnn
  2. add a line to CmakeLists.txt
    list(APPEND CMAKE_FIND_ROOT_PATH "D:/caffe_intel/mklml_win_2018.0.20170720")
  3. open a cmd window, cd to the mkl-dnn source directory; mkdir build; cd build
  4. cmake -G "Visual Studio 12 2013 Win64" -T"Intel C++ Compiler 17.0" ..
  5. Use the VS open the generated project. But building the the project is failed. The error:

error 3 error : identifier "constexpr" is undefined D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 73 1 mkldnn
error 4 error : expected a ";" D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 73 1 mkldnn
error 5 error : identifier "constexpr" is undefined D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 75 1 mkldnn
error 6 error : expected a ";" D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 75 1 mkldnn
error 7 error #77: this declaration has no storage class or type specifier D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 129 1 mkldnn
error 8 error : "constexpr" is not a function or static data member D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 129 1 mkldnn
Warn 9 warning #12: parsing restarts here after previous syntax error D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 134 1 mkldnn
error 10 error : expected a ";" D:\caffe_intel\mkl-dnn-master\src\common\utils.hpp 134 1 mkldnn
error 11 error : identifier "constexpr" is undefined D:\caffe_intel\mkl-dnn-master\src\common\nstl.hpp 47 1 mkldnn
error 12 error : expected a ";" D:\caffe_intel\mkl-dnn-master\src\common\nstl.hpp 47 1 mkldnn
error 13 error #303: explicit type is missing ("int" assumed) D:\caffe_intel\mkl-dnn-master\src\common\nstl.hpp 52 1 mkldnn
error 14 error : expected a ";" D:\caffe_intel\mkl-dnn-master\src\common\nstl.hpp 52 1 mkldnn
error 15 error #303: explicit type is missing ("int" assumed) D:\caffe_intel\mkl-dnn-master\src\common\nstl.hpp 57 1 mkldnn

Any suggestions to compile MKL-DNN on Windows or there is a pre-build binary one ? Thanks!

@vpirogov
Copy link
Member

We don't have binary distribution for Intel MKL-DNN on any platforms. While current version of MKL-DNN can be built on Windows it has limited functionality and validated platforms. The errors you observe are due to limited C++11 support in VS 2013, namely it does not understand constexpr keyword. You should be able to compiler using VS 2015. Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants