Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
David Brownell dc132a4118 Fixed incorrect hash values 2018-06-24 09:35:00 -07:00
Thiago Crepaldi 9e8d093cea Update linux build to use latest mkl-dnn and embed it with mkl
Previously MKL-DNN was hard-coded to /usr/local/lib.
Now it will be installed where the config --with-mkl parameter points to
2018-06-08 10:13:12 -07:00
Sergii Dymchenko 401e511d52 Use TLS 1.2 in devInstall script. 2018-04-19 17:09:26 -07:00
Manik Jindal 343f38350a Remove Python 3.4 support 2018-01-26 14:55:22 -08:00
Thiago Crepaldi a40285c90c Rename default Anaconda python environment
Depending on the CNTK setup steps followed, either cntk-py<version> or
<cntkdev-py<version> is installed. cntk-py<version> will be adopted as
the default from now on.
2018-01-23 10:43:51 -08:00
KeDengMS 3cf3af5df6 CNTK support for CUDA 9
CNTK now supports CUDA 9/cuDNN 7. This requires an update to build environment to Ubuntu 16/GCC 5 for Linux, and Visual Studio 2017/VCTools 14.11 for Windows. With CUDA 9, CNTK also added a preview for 16-bit floating point (a.k.a FP16) computation.

Please check out the example of FP16 in ResNet50 at /Examples/Image/Classification/ResNet/Python/TrainResNet_ImageNet_Distributed.py

Notes on FP16 preview:
* FP16 implementation on CPU is not optimized, and it's not supposed to be used in CPU inference directly. User needs to convert the model to 32-bit floating point before running on CPU.
* Loss/Criterion for FP16 training needs to be 32bit for accumulation without overflow, using cast function. Please check the example above.
* Readers do not have FP16 output unless using numpy to feed data, cast from FP32 to FP16 is needed. Please check the example above.
* FP16 gradient aggregation is currently only implemented on GPU using NCCL2. Distributed training with FP16 with MPI is not supported.
* FP16 math is a subset of current FP32 implementation. Some model may get Feature Not Implemented exception using FP16.
* FP16 is currently not supported in BrainScript. Please use Python for FP16.

To setup build and runtime environment on Windows:
* Install [Visual Studio 2017](https://www.visualstudio.com/downloads/) with following workloads and components. From command line (use Community version installer as example):
    vs_community.exe --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.Component.PythonTools --add Microsoft.VisualStudio.Component.VC.Tools.14.11
* Install [NVidia CUDA 9](https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&target_arch=x86_64)
* From PowerShell, run:
    /Tools/devInstall/Windows/DevInstall.ps1
* Start VCTools 14.11 command line, run:
    cmd /k "%VS2017INSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x64 --vcvars_ver=14.11
* Open /CNTK.sln from the VCTools 14.11 command line. Note that starting CNTK.sln other than VCTools 14.11 command line, would causes CUDA 9 [build error](https://developercommunity.visualstudio.com/content/problem/163758/vs-2017-155-doesnt-support-cuda-9.html).

To setup build and runtime environment on Linux using docker, please build Unbuntu 16.04 docker image using Dockerfiles /Tools/docker. For other Linux systems, please refer to the Dockerfiles to setup dependent libraries for CNTK.
2018-01-22 16:58:56 -08:00
KeDengMS fbe030b0dc Switch from CNTKCustomMKL to Intel MKLML. MKLML is released with [Intel MKL-DNN](https://github.com/01org/mkl-dnn/releases) as a trimmed version of Intel MKL for MKL-DNN. To set it up:
On Linux:

    sudo mkdir /usr/local/mklml
    sudo wget https://github.com/01org/mkl-dnn/releases/download/v0.11/mklml_lnx_2018.0.1.20171007.tgz
    sudo tar -xzf mklml_lnx_2018.0.1.20171007.tgz -C /usr/local/mklml

On Windows:

    Create a directory on your machine to hold MKLML, e.g. mkdir c:\local\mklml
    Download the file [mklml_win_2018.0.1.20171007.zip](https://github.com/01org/mkl-dnn/releases/download/v0.11/mklml_win_2018.0.1.20171007.zip).
    Unzip it into your MKLML path, creating a versioned sub directory within.
    Set the environment variable `MKLML_PATH` to the versioned sub directory, e.g. setx MKLML_PATH c:\local\mklml\mklml_win_2018.0.1.20171007

This change also enables CPU convolution forward/backward using MKL, which leads to ~4x speedup in AlexNet training.
2017-11-10 11:48:16 -08:00
Wolfgang Manousek 49cbd8555b remove cub download hash 2017-08-31 13:31:51 +02:00
Wolfgang Manousek d817f8bda1 change install to cudnn6 2017-07-31 17:55:46 +02:00
Mark Hillebrand a2b4997796 Tools/devInstall/Linux/install-swig.sh: added
Moved and refreshed from bindings/python/swig_install.sh. Install
location now is /usr/local/swig-*, which ./configure picks up
automatically.

Specify --without-alllang for SWIG build, which should suppress building
tests and examples for specific languages.

Windows: Update source setup links for SWIG
2017-07-07 13:16:12 +02:00
Big Data Tech. Lab 이태훈 1c1c70de90 Fix typos 2017-06-23 16:44:56 +09:00
Wolfgang Manousek 5ecc834722 updating links to old wiki - referencing now the doc site 2017-06-07 15:55:34 +02:00
Mark Hillebrand 3542533708 Py 3.6 build & test 2017-04-13 14:19:19 +02:00
Wolfgang Manousek da23f478c0 fix devinstall for powershell version4 - not supporting SOURCE property on get-command result, using PATH instead 2017-03-20 14:17:46 +01:00
Wolfgang Manousek 57882fb1ad address CR comments 2017-02-16 15:39:31 +01:00
Wolfgang Manousek f7794bd15e make EXECUTE the default script option
add NOCONFIRM command line option to execute script without confirmation
Anaconda is installed into the directory defined by INSTALLPATH, unless ANACONDABASEPATH is specified
2017-02-16 15:39:31 +01:00
Wolfgang Manousek 5405b64828 Closes: #1425 2017-02-14 19:45:05 +01:00
Wolfgang Manousek f45902f03f fix CallGetCommand, failing if multiple applications where discovered 2017-02-14 19:45:05 +01:00
Wolfgang Manousek 9c968d6c92 removed dangling ; 2017-02-07 10:29:32 +01:00
Wolfgang Manousek 26da2a5c5b fix Opencv download, added NoConfirmation option 2017-02-07 09:42:56 +01:00
Wolfgang Manousek 96050ad86b addresses CR comments
fix parameter set definition
2017-01-27 11:58:33 +01:00
Wolfgang Manousek d87439b568 check that the 64bit version of powershell is used to run the script
added PyEnvironmentName as an optional parameter
removed text from readme to limit duplication with wiki
fix minor code formatting issues
2017-01-27 11:58:33 +01:00
Wolfgang Manousek 9df7fcb213 fix issue with path specification at the command line terminated with a backslash
check download with hash instead of filesize
don't report error if hash doesn't match, make this into a warning
2017-01-27 11:58:33 +01:00
Wolfgang Manousek 167734c56b download cudnn directly from github archive 2017-01-24 13:53:28 +01:00
Wolfgang Manousek d15bec5a5b remove size verification for cudnn download 2017-01-21 09:42:08 +01:00
Wolfgang Manousek 0a2303a242 move default to python35 2017-01-21 08:54:42 +01:00
Wolfgang Manousek ec475cf5f3 adressed CR comments 2017-01-12 13:59:16 +01:00
Wolfgang Manousek 0389f772d0 fix the Anaconda installer invocation (no quotes allowed around path)
clean up DoProcess function
2017-01-12 13:59:16 +01:00
Wolfgang Manousek f160085550 addressed CR comments 2017-01-11 19:31:32 +01:00
Wolfgang Manousek c1684a7a4e more cr changes 2017-01-11 19:31:32 +01:00
Wolfgang Manousek 89f9a54eca addressed CR comments 2017-01-11 19:31:31 +01:00
Wolfgang Manousek f9292628b6 variouse bug fixes, environment variable settings, etc. Removed dead code 2017-01-11 19:31:31 +01:00
Wolfgang Manousek 172293b54d moved to tools directory, minor bug fix in build-batch files 2017-01-10 16:47:16 +01:00