singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [6/8] incubator-singa git commit: SINGA-247 Add windows support for singa.
Date Mon, 10 Oct 2016 15:46:12 GMT
SINGA-247 Add windows support for singa.

Update to guide the user in Windows platform.


Branch: refs/heads/master
Commit: 6c9e0b4a3a3a33f178c554722856c29eb926fba4
Parents: af30903
Author: xiezl <>
Authored: Thu Sep 22 17:29:50 2016 +0800
Committer: Wei Wang <>
Committed: Mon Oct 10 17:44:53 2016 +0800

 doc/en/docs/ | 39 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/doc/en/docs/ b/doc/en/docs/
index e4b76c0..a797c57 100755
--- a/doc/en/docs/
+++ b/doc/en/docs/
@@ -215,8 +215,45 @@ To build SINGA with OpenCL support, you need to pass the flag during
     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
+For the dependent library installation, please refer to
+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

View raw message