Repository: incubator-singa Updated Branches: refs/heads/dev a18a01907 -> 8c2a0e85e
SINGA-225 Documentation for installation and Cifar10 example Updated the docs for installation page to correct typos and add instructions for CMAKE to find CUDNN. Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/8c2a0e85 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/8c2a0e85 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/8c2a0e85 Branch: refs/heads/dev Commit: 8c2a0e85e1f047c97205a1fb3334775ab7efdce6 Parents: a18a019 Author: Wei Wang <[email protected]> Authored: Wed Jul 20 12:48:43 2016 +0800 Committer: Wei Wang <[email protected]> Committed: Wed Jul 20 12:54:08 2016 +0800 ---------------------------------------------------------------------- doc/docs/installation.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/8c2a0e85/doc/docs/installation.md ---------------------------------------------------------------------- diff --git a/doc/docs/installation.md b/doc/docs/installation.md index 4aecb73..8ab617f 100755 --- a/doc/docs/installation.md +++ b/doc/docs/installation.md @@ -1,4 +1,4 @@ -#Building SINGA from source +# Building SINGA from source ## Dependencies @@ -7,9 +7,10 @@ * BLAS (tested with OpenBLAS >=0.2.10) * CUDA (tested with 6.5, 7.0 and 7.5) * CUDNN (v4 and v5) +* cmake (>=2.6) -Uses must install the above mandatory libraries. -Currently CUDA and CUNN are also mandatory, but it would become optional later. +Users must install the above mandatory libraries. +Currently CUDA and CUDNN are also mandatory, but it would become optional later. ### Optional * Glog @@ -37,7 +38,8 @@ which could be downloaded as ### Linux OS -Then in SINGA_ROOT, execute the following commands for compiling SINGA, +GCC (>=4.8.1) is required to compile SINGA on Linux OS. +In SINGA_ROOT, execute the following commands for compiling SINGA, $ mkdir build && cd build # generate Makefile for compilation @@ -45,6 +47,11 @@ Then in SINGA_ROOT, execute the following commands for compiling SINGA, # compile SINGA $ make +Note that if you are using CUDNN, you need to let cmake know the paths to CUDNN, + + $ export CMAKE_INCLUDE_PATH=<path to cudnn>/include:$CMAKE_INCLUDE_PATH + $ export CMAKE_LIBRARY_PATH=<path to cudnn>/lib64:$CMAKE_LIBRARY_PATH + You can use `ccmake ..` to configure the compilation options including using LMDB, GLOG, etc. @@ -53,7 +60,7 @@ After compiling SINGA, you can run the unit tests by $ ./bin/test_singa You can see all the testing cases with testing results. If SINGA passes all -tests, then you have successfully installed SINGA. Please proceed to enjoy SINGA! +tests, then you have successfully installed SINGA. Please proceed to try the examples! ### MacOS
