SINGA-247 Add windows support for singa. Update installation.md to guide the user in Windows platform.
Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/6c9e0b4a Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/6c9e0b4a Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/6c9e0b4a Branch: refs/heads/master Commit: 6c9e0b4a3a3a33f178c554722856c29eb926fba4 Parents: af30903 Author: xiezl <[email protected]> Authored: Thu Sep 22 17:29:50 2016 +0800 Committer: Wei Wang <[email protected]> Committed: Mon Oct 10 17:44:53 2016 +0800 ---------------------------------------------------------------------- doc/en/docs/installation.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/6c9e0b4a/doc/en/docs/installation.md ---------------------------------------------------------------------- diff --git a/doc/en/docs/installation.md b/doc/en/docs/installation.md index e4b76c0..a797c57 100755 --- a/doc/en/docs/installation.md +++ b/doc/en/docs/installation.md @@ -215,8 +215,45 @@ To build SINGA with OpenCL support, you need to pass the flag during cmake: cmake .. -DUSE_OPENCL=ON ### Windows -To be added. +The compiler used for windows can ONLY be Visual Studio 2015 as some c++11 +features (Generic lambdas, auto, non-static data member intitializers, etc.) +followed by singa are only supported in this version (Details can be found +[here](https://msdn.microsoft.com/en-us/library/hh567368.aspx)). + +For the dependent library installation, please refer to +[Dependencies](doc/en/docs/dependencies.md). +After all the +dependencies are successfully installed, just run the following commands to +generate the VS project in cmd under singa folder: + + $ md build && cd build + $ cmake -G "Visual Studio 14" -DUSE_CUDA=OFF -DUSE_PYTHON=OFF .. + +Current version of singa cannot support neither cuda/cudnn compiling nor python +wrappers. The default project generated by the command is 32-bit version. You can also +specify a 64-bit version project by: + + $ md build && cd build + $ cmake -G "Visual Studio 14 Win64" -DUSE_CUDA=OFF -DUSE_PYTHON=OFF .. + +If you get error outputs like "Could NOT find xxxxx" indicating a dependent +library missing, please configure your library file and include path for cmake or the system. +For example, you get an error "Could NOT find CBLAS" and suppose you installed +openblas header files at "d:\include" and openblas library at "d:\lib". You should run the +following command to specify your cblas parameters in cmake: + + $ cmake -G "Visual Studio 14" -DUSE_CUDA=OFF -DUSE_PYTHON=OFF + -DCBLAS_INCLUDE_DIR="d:\include" -DCBLAS_LIBRARIES="d:\lib\libopenblas.lib" + +To find out the parameters you need to specify for some special libraries, you +can run the following command: + + $ cmake -LAH + +After generating the VS project, please open the "singa.sln" project file under +the "build" folder and compile it via a normal VS project. You will find the +unit tests file named "test_singa" in the project binary folder. ## FAQ
