Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8FC77200B76 for ; Mon, 15 Aug 2016 18:15:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8E605160A8A; Mon, 15 Aug 2016 16:15:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB1BD160AA7 for ; Mon, 15 Aug 2016 18:15:27 +0200 (CEST) Received: (qmail 23048 invoked by uid 500); 15 Aug 2016 16:15:27 -0000 Mailing-List: contact commits-help@singa.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.incubator.apache.org Delivered-To: mailing list commits@singa.incubator.apache.org Received: (qmail 22967 invoked by uid 99); 15 Aug 2016 16:15:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 16:15:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 75A33C0591 for ; Mon, 15 Aug 2016 16:15:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Yc-shUfabsDw for ; Mon, 15 Aug 2016 16:15:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 593F060D74 for ; Mon, 15 Aug 2016 16:15:19 +0000 (UTC) Received: (qmail 19991 invoked by uid 99); 15 Aug 2016 16:15:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 16:15:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E2E61E3AA2; Mon, 15 Aug 2016 16:15:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wangwei@apache.org To: commits@singa.incubator.apache.org Date: Mon, 15 Aug 2016 16:15:23 -0000 Message-Id: <9632fd337f514ea7b8d201549d24ab96@git.apache.org> In-Reply-To: <848935694d314a65a485473004ecc9ab@git.apache.org> References: <848935694d314a65a485473004ecc9ab@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/22] incubator-singa git commit: SINGA-237 New documentation files for SINGA v1.0 archived-at: Mon, 15 Aug 2016 16:15:28 -0000 SINGA-237 New documentation files for SINGA v1.0 Update installation.md. Update flags in MacOS. Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/30731ee4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/30731ee4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/30731ee4 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/installation.md | 20 +++++++++++--------- test/CMakeLists.txt | 5 ++++- 2 files changed, 15 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/30731ee4/doc/docs/installation.md ---------------------------------------------------------------------- diff --git a/doc/docs/installation.md b/doc/docs/installation.md index 8ab617f..4cf4ea7 100755 --- a/doc/docs/installation.md +++ b/doc/docs/installation.md @@ -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=/include:$CMAKE_INCLUDE_PATH $ export CMAKE_LIBRARY_PATH=/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 all tests, then you have successfully installed SINGA. Please proceed to try the examples! -### MacOS - - ### Windows http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/30731ee4/test/CMakeLists.txt ---------------------------------------------------------------------- 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}) -SET_TARGET_PROPERTIES(test_singa PROPERTIES LINK_FLAGS "${LINK_FLAGS} -pthread ") +IF(UNIX AND (NOT APPLE)) + LIST(APPEND LINK_FLAGS "-pthread") +ENDIF() +SET_TARGET_PROPERTIES(test_singa PROPERTIES LINK_FLAGS "${LINK_FLAGS}")