leezu commented on a change in pull request #17808: Windows dev environment 
configuration, update install instructions from source in the docs
URL: https://github.com/apache/incubator-mxnet/pull/17808#discussion_r390728074
 
 

 ##########
 File path: docs/static_site/src/pages/get_started/windows_setup.md
 ##########
 @@ -137,126 +137,37 @@ Check the chart below for other options or refer to 
[PyPI for other MXNet pip pa
 
 ## Build from Source
 
-**IMPORTANT: It is recommended that you review the [build from source 
guide](build_from_source) first.** It describes many of the build options that 
come with MXNet in more detail. You may decide to install additional 
dependencies and modify your build flags after reviewing this material.
 
-We provide two primary options to build and install MXNet yourself using 
[Microsoft Visual Studio 2017](https://www.visualstudio.com/downloads/) or 
[Microsoft Visual Studio 
2015](https://www.visualstudio.com/vs/older-downloads/).
+For automated setting up of developer environment in windows, use script 
bundle from the
+![ci/windows_dev_env](https://github.com/apache/incubator-mxnet/tree/master/ci/windows_dev_env/)
+folder. Copy to a local directory and execute:
 
-**NOTE:** Visual Studio 2017's compiler is `vc15`. This is not to be confused 
with Visual Studio 2015's compiler, `vc14`.
-
-You also have the option to install MXNet with MKL or MKL-DNN. In this case it 
is recommended that you refer to the 
[MKLDNN_README](https://mxnet.apache.org/api/python/docs/tutorials/performance/backend/mkldnn/mkldnn_readme.html).
-
-**Option 1: Build with Microsoft Visual Studio 2017 (VS2017)**
-
-To build and install MXNet yourself using 
[VS2017](https://www.visualstudio.com/downloads/), you need the following 
dependencies. You may try a newer version of a particular dependency, but 
please open a pull request or 
[issue](https://github.com/apache/incubator-mxnet/issues/new) to update this 
guide if a newer version is validated.
-
-1. Install or update VS2017.
-    - If [VS2017](https://www.visualstudio.com/downloads/) is not already 
installed, download and install it. You can download and install the free 
community edition.
-    - When prompted about installing Git, go ahead and install it.
-    - If VS2017 is already installed you will want to update it. Proceed to 
the next step to modify your installation. You will be given the opportunity to 
update VS2017 as well
-1. Follow the [instructions for opening the Visual Studio 
Installer](https://docs.microsoft.com/en-us/visualstudio/install/modify-visual-studio)
 to modify `Individual components`.
-1. Once in the Visual Studio Installer application, update as needed, then 
look for and check `VC++ 2017 version 15.4 v14.11 toolset`, and click `Modify`.
-1. Change the version of the Visual studio 2017 to v14.11 using the following 
command (by default the VS2017 is installed in the following path):
-```
-"C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.11
-```
-1. Download and install [CMake](https://cmake.org/download) if it is not 
already installed. [CMake 
v3.12.2](https://cmake.org/files/v3.12/cmake-3.12.2-win64-x64.msi) has been 
tested with MXNet.
-1. Download and run the  
[OpenCV](https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.4.1/opencv-3.4.1-vc14_vc15.exe/download)
 package. There are more recent versions of OpenCV, so please create an 
issue/PR to update this info if you validate one of these later versions.
-1. This will unzip several files. You can place them in another directory if 
you wish. We will use `C:\utils`(```mkdir C:\utils```) as our default path.
-1. Set the environment variable `OpenCV_DIR` to point to the OpenCV build 
directory that you just unzipped. Start ```cmd``` and type `set 
OpenCV_DIR=C:\utils\opencv\build`.
-1. If you don’t have the Intel Math Kernel Library (MKL) installed, you can 
install it and follow the 
[MKLDNN_README](https://mxnet.apache.org/api/python/docs/tutorials/performance/backend/mkldnn/mkldnn_readme.html)
 from here, or you can use OpenBLAS. These instructions will assume you're 
using OpenBLAS.
-1. Download the 
[OpenBlas](https://sourceforge.net/projects/openblas/files/v0.2.19/OpenBLAS-v0.2.19-Win64-int32.zip/download)
 package. Later versions of OpenBLAS are available, but you would need to build 
from source. v0.2.19 is the most recent version that ships with binaries. 
Contributions of more recent binaries would be appreciated.
-1. Unzip the file, rename it to ```OpenBLAS``` and put it under `C:\utils`. 
You can place the unzipped files and folders in another directory if you wish.
-1. Set the environment variable `OpenBLAS_HOME` to point to the OpenBLAS 
directory that contains the `include` and `lib` directories and type `set 
OpenBLAS_HOME=C:\utils\OpenBLAS` on the command prompt(```cmd```).
-1. Download and install 
[CUDA](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal).
 If you already had CUDA, then installed VS2017, you should reinstall CUDA now 
so that you get the CUDA toolkit components for VS2017 integration. Note that 
the latest CUDA version supported by MXNet is 
[9.2](https://developer.nvidia.com/cuda-92-download-archive). You might also 
want to find other CUDA verion on the [Legacy 
Releases](https://developer.nvidia.com/cuda-toolkit-archive).
-1. Download and install cuDNN. To get access to the download link, register as 
an NVIDIA community user. Then follow the 
[link](http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-windows)
 to install the cuDNN and put those libraries into ```C:\cuda```.
-1. Download and install [git](https://git-for-windows.github.io/) if you 
haven't already.
-
-After you have installed all of the required dependencies, build the MXNet 
source code:
-
-1. Start ```cmd``` in windows.
-2. Download the MXNet source code from GitHub by using following command:
-```
-cd C:\
-git clone https://github.com/apache/incubator-mxnet.git --recursive
-```
-3. Verify that the `DCUDNN_INCLUDE` and `DCUDNN_LIBRARY` environment variables 
are pointing to the `include` folder and `cudnn.lib` file of your CUDA 
installed location, and `C:\incubator-mxnet` is the location of the source code 
you just cloned in the previous step.
-4. Create a build dir using the following command and go to the directory, for 
example:
-```
-mkdir C:\incubator-mxnet\build
-cd C:\incubator-mxnet\build
-```
-5. Compile the MXNet source code with `cmake` by using following command:
 ```
-cmake -G "Visual Studio 15 2017 Win64" -T cuda=9.2,host=x64 -DUSE_CUDA=1 
-DUSE_CUDNN=1 -DUSE_NVRTC=1 -DUSE_OPENCV=1 -DUSE_OPENMP=1 -DUSE_BLAS=open 
-DUSE_LAPACK=1 -DUSE_DIST_KVSTORE=0 -DCUDA_ARCH_LIST=Common -DCUDA_TOOLSET=9.2 
-DCUDNN_INCLUDE=C:\cuda\include -DCUDNN_LIBRARY=C:\cuda\lib\x64\cudnn.lib 
"C:\incubator-mxnet"
+.\setup.ps1
 
 Review comment:
   Is it feasible to provide short non-blackbox instructions to install MXNet?
   
   For example, if users have a standard installation of visual studio, can the 
installation experience be pretty similar to 
https://mxnet.apache.org/get_started/ubuntu_setup#build-the-mxnet-shared-library-from-source
 Step 2 and Step 3?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to