You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/23 04:07:57 UTC

[GitHub] [incubator-mxnet] visionNoob opened a new issue #15632: Building MxNet with CPP_PACKAGE on Windows10 (2019-07-23)

visionNoob opened a new issue #15632: Building MxNet with CPP_PACKAGE on Windows10 (2019-07-23)
URL: https://github.com/apache/incubator-mxnet/issues/15632
 
 
   This document gives a information about Building MxNet with CPP_PACKAGE on Windows10.
   If you think it is inappropriate, please close the issue.
   ---
   Hello. I'm visionNoob. 
   I think many people are struggling with building MxNet on win10, including me. 
   Finally, I (partially) succeed in building MxNet on win10.
   
   ### Environment
   Windows 10 Education
   Visual Studio 2015
   python 3.6(7.5.0)
   Nvidia CUDA 9.0(V9.0.176)
   Intel® MKL 2019(V2019.4.245)
   OpenCV 4.1.0([released in 2019-04-08](https://opencv.org/releases/)) 
   
   ### contents 
   ## 1. MxNet : https://github.com/Vigilans/incubator-mxnet/tree/patch-1 (not merged yet) 
   I cloned MxNet source from https://github.com/Vigilans/incubator-mxnet/tree/patch-1
   see PR [#15144](https://github.com/apache/incubator-mxnet/pull/15144)
   this branch handle several issues( [#14116](https://github.com/apache/incubator-mxnet/issues/14116), [#15143](https://github.com/apache/incubator-mxnet/issues/15143) that make failure in generated op.h.) 
   
   ## 2. Visual Studio 2015(vc14)
   I think CUDA Visual Studio Integration is also needed for stable building for cuda.
   And update 3 also needed. 
   
   ## 3. OpenCV
   I use "OpenCV 4.1.0 official release version" not build from source. I tried to use OpenCV that builds myself with extra-modules but with this, fail to build mxnet. I don't know why. 
   
   ## 4. Cmake version
   I use latest version of Cmake, 3.15.0. it's fine. 
   
   ## 5. Cmake configuration 
   my configuation is below 
   
   you have to set some paths and disable/enable some options. 
   please refer from the screen shots below. 
   ![1](https://user-images.githubusercontent.com/15168540/61681618-2d8ddb00-ad49-11e9-88d0-a066c0515e09.png)
   ![2](https://user-images.githubusercontent.com/15168540/61681619-2f579e80-ad49-11e9-9b43-762134d2393d.png)
   ![3](https://user-images.githubusercontent.com/15168540/61681624-3088cb80-ad49-11e9-9b99-d0e0cee8a84c.png)
   ![4](https://user-images.githubusercontent.com/15168540/61681625-32528f00-ad49-11e9-9876-cdc8ef85f3e7.png)
   ![5](https://user-images.githubusercontent.com/15168540/61681627-341c5280-ad49-11e9-869d-41902a55f117.png)
   ![6](https://user-images.githubusercontent.com/15168540/61681631-367eac80-ad49-11e9-9cd2-d68e9abab06d.png)
   
   ## 6. In my case, I generated "op.h" manually . 
   it's very simple 
   `OpWrapperGenerator.py` generate "op.h" in "...\incubator-mxnet\cpp-package\include\mxnet-cpp\op.h"
   The location of OpWrapperGenerator.py is 
   ...\incubator-mxnet\cpp-package\scripts\OpWrapperGenerator.py
   
   go to the directory and 
   ```
   python OpWrapperGenerator.py "\your\build\Release\libmxnet.dll"
   ```
   then "op.h" is generated in  "...\incubator-mxnet\cpp-package\include\mxnet-cpp\op.h" 
   
   If you see this sentences(below) during generation, You fail to generate  "op.h". 
   I say it again. I downloaded mxnet source from here(https://github.com/Vigilans/incubator-mxnet/tree/patch-1). and it maybe solve your problems. 
   
   ```
   1>argument "lrs" of operator "multi_sgd_update" has unknown type ", required"
   1>argument "wds" of operator "multi_sgd_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_sgd_mom_update" has unknown type ", required"
   1>argument "wds" of operator "multi_sgd_mom_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_mp_sgd_update" has unknown type ", required"
   1>argument "wds" of operator "multi_mp_sgd_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_mp_sgd_mom_update" has unknown type ", required"
   1>argument "wds" of operator "multi_mp_sgd_mom_update" has unknown type ", required"
   ```
   ## 7. Test your build! 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services