singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [10/22] incubator-singa git commit: SINGA-237 New documentation files for SINGA v1.0
Date Mon, 15 Aug 2016 16:15:23 GMT
SINGA-237 New documentation files for SINGA v1.0

Update flags in MacOS.


Branch: refs/heads/dev
Commit: 30731ee412f85c80f2d8ce81671eaa7a84d53524
Parents: d3a57cf
Author: xiezl <>
Authored: Mon Aug 15 16:42:25 2016 +0800
Committer: xiezl <>
Committed: Mon Aug 15 16:42:25 2016 +0800

 doc/docs/ | 20 +++++++++++---------
 test/CMakeLists.txt      |  5 ++++-
 2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/doc/docs/ b/doc/docs/
index 8ab617f..4cf4ea7 100755
--- a/doc/docs/
+++ b/doc/docs/
@@ -36,24 +36,29 @@ which could be downloaded as
     $ git submodule update
-### Linux OS
+### Linux & MacOS 
+GCC (>=4.8.1) is required to compile SINGA on Linux.
+You can use gcc compiler to do the installation on MacOS following the
+steps in Linux installation. 
+In addition, you can also install singa via clang compiler following the
+commands in this section.
-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
     $ cmake ..
-    # compile SINGA
     $ make
-Note that if you are using CUDNN, you need to let cmake know the paths to CUDNN,
+Note that if you are using CUDNN and it is not installed under system default
+folder, 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.
+LMDB, GLOG, etc. In addition, you can set the proper search paths for the
+dependent libraries.
 After compiling SINGA, you can run the unit tests by
@@ -63,7 +68,4 @@ You can see all the testing cases with testing results. If SINGA passes
 tests, then you have successfully installed SINGA. Please proceed to try the examples!
-### MacOS
 ### Windows
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f196928..6e7dd84 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -23,5 +23,8 @@ ADD_DEPENDENCIES(test_singa singa_core singa_utils)
 #MESSAGE(STATUS "link libs" ${singa_linker_libs})
 TARGET_LINK_LIBRARIES(test_singa gtest singa_core singa_utils singa_model
     singa_io proto protobuf ${SINGA_LINKER_LIBS})
+    LIST(APPEND LINK_FLAGS "-pthread")

View raw message