singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r969764 [2/4] - in /websites/staging/singa/trunk/content: ./ community/ develop/ docs/ releases/ v0.1.0/
Date Wed, 21 Oct 2015 14:53:22 GMT
Modified: websites/staging/singa/trunk/content/docs/index.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/index.html (original)
+++ websites/staging/singa/trunk/content/docs/index.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Latest Documentation</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,18 +223,18 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
       <li class="active">
   
             <a href="#"><span class="icon-chevron-down"></span>Latest</a>
                   <ul class="nav nav-list">
-                    
+                                                                                        
       <li>
   
                           <a href="../docs/installation.html" title="Installation">
-          <span class="none"></span>
+          <span class="icon-chevron-right"></span>
         Installation</a>
-            </li>
+                  </li>
                                                                                                                                                                 
       <li>
   
@@ -242,7 +242,7 @@
           <span class="icon-chevron-right"></span>
         Programmer Guide</a>
                   </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">

Modified: websites/staging/singa/trunk/content/docs/installation.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/installation.html (original)
+++ websites/staging/singa/trunk/content/docs/installation.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Installation</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,18 +223,34 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
       <li>
   
                           <a href="../docs/index.html" title="Latest">
           <span class="icon-chevron-down"></span>
         Latest</a>
                     <ul class="nav nav-list">
-                    
+                                                                                            
       <li class="active">
   
-            <a href="#"><span class="none"></span>Installation</a>
-          </li>
+            <a href="#"><span class="icon-chevron-down"></span>Installation</a>
+                  <ul class="nav nav-list">
+                    
+      <li>
+  
+                          <a href="../docs/installation_source.html" title="From source">
+          <span class="none"></span>
+        From source</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/docker.html" title="Using Docker">
+          <span class="none"></span>
+        Using Docker</a>
+            </li>
+              </ul>
+        </li>
                                                                                                                                                                 
       <li>
   
@@ -242,7 +258,7 @@
           <span class="icon-chevron-right"></span>
         Programmer Guide</a>
                   </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">
@@ -375,267 +391,14 @@
                                   
             <h1>Installation</h1>
 <hr />
-<div class="section">
-<h2><a name="Dependencies"></a>Dependencies</h2>
-<p>SINGA is developed and tested on Linux platforms.</p>
-<p>The following dependent libraries are required:</p>
+<p>Currently, there are two ways to install SINGA: build directly from source, and build a Docker image. </p>
 
 <ul>
   
-<li>
-<p>glog version 0.3.3</p></li>
-  
-<li>
-<p>google-protobuf version 2.6.0</p></li>
-  
-<li>
-<p>openblas version &gt;= 0.2.10</p></li>
-  
-<li>
-<p>zeromq version &gt;= 3.2</p></li>
-  
-<li>
-<p>czmq version &gt;= 3</p></li>
+<li><a href="installation_source.html">Build SINGA directly from source</a></li>
   
-<li>
-<p>zookeeper version 3.4.6</p></li>
+<li><a href="docker.html">Build SINGA as a Docker container</a></li>
 </ul>
-<p>Optional dependencies include:</p>
-
-<ul>
-  
-<li>lmdb version 0.9.10</li>
-</ul>
-<p>You can install all dependencies into $PREFIX folder by</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint"># make sure you are in the thirdparty folder
-cd thirdparty
-./install.sh all $PREFIX
-</pre></div></div>
-<p>If $PREFIX is not a system path (e.g., /usr/local/), please export the following variables to continue the building instructions,</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
-export CPLUS_INCLUDE_PATH=$PREFIX/include:$CPLUS_INCLUDE_PATH
-export LIBRARY_PATH=$PREFIX/lib:$LIBRARY_PATH
-export PATH=$PREFIX/bin:$PATH
-</pre></div></div>
-<p>More details on using this script is given below.</p></div>
-<div class="section">
-<h2><a name="Building_SINGA_from_source"></a>Building SINGA from source</h2>
-<p>SINGA is built using GNU autotools. GCC (version &gt;= 4.8) is required. There are two ways to build SINGA,</p>
-
-<ul>
-  
-<li>
-<p>If you want to use the latest code, please clone it from  <a class="externalLink" href="https://github.com/apache/incubator-singa.git">Github</a> and execute  the following commands,</p>
-  
-<div class="source">
-<div class="source"><pre class="prettyprint">$ git clone git@github.com:apache/incubator-singa.git
-$ cd incubator-singa
-$ ./autogen.sh
-$ ./configure
-$ make
-</pre></div></div></li>
-</ul>
-<p>Note: It is an oversight that we forgot to delete the singa repo under <a class="externalLink" href="https://github.com/orgs/nusinga">nusinga</a>  account after we became Apache Incubator project &#x2013; the source  in that repo was not up to date, and we apologize for any inconvenience.</p>
-
-<ul>
-  
-<li>
-<p>If you download a release package, please follow the instructions below,</p>
-  
-<div class="source">
-<div class="source"><pre class="prettyprint">$ tar xvf singa-xxx
-$ cd singa-xxx
-$ ./configure
-$ make
-</pre></div></div>
-<p>Some features of SINGA depend on external libraries. These features can be compiled with <tt>--enable-&lt;feature&gt;</tt>. For example, to build SINGA with lmdb support, you can run:</p>
-  
-<div class="source">
-<div class="source"><pre class="prettyprint">$ ./configure --enable-lmdb
-</pre></div></div></li>
-</ul>
-<!-- -
-Zhongle: please update the code to use the follow command
-
-    $ make test
-
-After compilation, you will find the binary file singatest. Just run it!
-More details about configure script can be found by running:
-
-		$ ./configure -h -->
-<p>After compiling SINGA successfully, the <i>libsinga.so</i> and the executable file <i>singa</i> will be generated into <i>.libs/</i> folder.</p>
-<p>If some dependent libraries are missing (or not detected), you can use the following script to download and install them:</p>
-<!-- -
-to be updated after zhongle changes the code to use
-
-    ./install.sh libname \-\-prefix= -->
-
-<div class="source">
-<div class="source"><pre class="prettyprint"># must goto thirdparty folder
-$ cd thirdparty
-$ ./install.sh LIB_NAME PREFIX
-</pre></div></div>
-<p>If you do not specify the installation path, the library will be installed in the default folder specified by the software itself. For example, if you want to install <tt>zeromq</tt> library in the default system folder, run it as</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">$ ./install.sh zeromq
-</pre></div></div>
-<p>Or, if you want to install it into another folder,</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">$ ./install.sh zeromq PREFIX
-</pre></div></div>
-<p>You can also install all dependencies in <i>/usr/local</i> directory:</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">$ ./install.sh all /usr/local
-</pre></div></div>
-<p>Here is a table showing the first arguments:</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">LIB_NAME  LIBRARIE
-czmq*                 czmq lib
-glog                  glog lib
-lmdb                  lmdb lib
-OpenBLAS              OpenBLAS lib
-protobuf              Google protobuf
-zeromq                zeromq lib
-zookeeper             Apache zookeeper
-</pre></div></div>
-<p>*: Since <tt>czmq</tt> depends on <tt>zeromq</tt>, the script offers you one more argument to indicate <tt>zeromq</tt> location. The installation commands of <tt>czmq</tt> is:</p>
-<!-- -
-to be updated to
-
-    $./install.sh czmq  \-\-prefix=/usr/local \-\-zeromq=/usr/local/zeromq -->
-
-<div class="source">
-<div class="source"><pre class="prettyprint">$./install.sh czmq  /usr/local -f=/usr/local/zeromq
-</pre></div></div>
-<p>After the execution, <tt>czmq</tt> will be installed in <i>/usr/local</i>. The last path specifies the path to zeromq.</p>
-<div class="section">
-<h3><a name="FAQ"></a>FAQ</h3>
-
-<ul>
-  
-<li>Q1:I get error <tt>./configure --&gt; cannot find blas_segmm() function</tt> even I have installed OpenBLAS.</li>
-</ul>
-<p>A1: This means the compiler cannot find the <tt>OpenBLAS</tt> library. If you installed  it to $PREFIX (e.g., /opt/OpenBLAS), then you need to export it as</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ export LIBRARY_PATH=$PREFIX/lib:$LIBRARY_PATH
-  # e.g.,
-  $ export LIBRARY_PATH=/opt/OpenBLAS/lib:$LIBRARY_PATH
-</pre></div></div>
-
-<ul>
-  
-<li>Q2: I get error <tt>cblas.h no such file or directory exists</tt>.</li>
-</ul>
-<p>Q2: You need to include the folder of the cblas.h into CPLUS_INCLUDE_PATH,  e.g.,</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ export CPLUS_INCLUDE_PATH=$PREFIX/include:$CPLUS_INCLUDE_PATH
-  # e.g.,
-  $ export CPLUS_INCLUDE_PATH=/opt/OpenBLAS/include:$CPLUS_INCLUDE_PATH
-  # then reconfigure and make SINGA
-  $ ./configure
-  $ make
-</pre></div></div>
-
-<ul>
-  
-<li>Q3:While compiling SINGA, I get error <tt>SSE2 instruction set not enabled</tt></li>
-</ul>
-<p>A3:You can try following command:</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ make CFLAGS='-msse2' CXXFLAGS='-msse2'
-</pre></div></div>
-
-<ul>
-  
-<li>Q4:I get <tt>ImportError: cannot import name enum_type_wrapper</tt> from google.protobuf.internal when I try to import .py files.</li>
-</ul>
-<p>A4:After install google protobuf by <tt>make install</tt>, we should install python  runtime libraries. Go to protobuf source directory, run:</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ cd /PROTOBUF/SOURCE/FOLDER
-  $ cd python
-  $ python setup.py build
-  $ python setup.py install
-</pre></div></div>
-<p>You may need <tt>sudo</tt> when you try to install python runtime libraries in  the system folder.</p>
-
-<ul>
-  
-<li>Q5: I get a linking error caused by gflags.</li>
-</ul>
-<p>A5: SINGA does not depend on gflags. But you may have installed the glog with  gflags. In that case you can reinstall glog using <i>thirdparty/install.sh</i> into  a another folder and export the LDFLAGS and CPPFLAGS to include that folder.</p>
-
-<ul>
-  
-<li>Q6: While compiling SINGA and installing <tt>glog</tt> on mac OS X, I get fatal error <tt>'ext/slist' file not found</tt></li>
-</ul>
-<p>A6:Please install <tt>glog</tt> individually and try :</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ make CFLAGS='-stdlib=libstdc++' CXXFLAGS='stdlib=libstdc++'
-</pre></div></div>
-
-<ul>
-  
-<li>Q7: When I start a training job, it reports error related with &#x201c;ZOO_ERROR&#x2026;zk retcode=-4&#x2026;&#x201d;.</li>
-</ul>
-<p>A7: This is because the zookeeper is not started. Please start the zookeeper service</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ ./bin/zk-service start
-</pre></div></div>
-<p>If the error still exists, probably that you do not have java. You can simple  check it by</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ java --version
-</pre></div></div>
-
-<ul>
-  
-<li>Q8: When I build OpenBLAS from source, I am told that I need a fortran compiler.</li>
-</ul>
-<p>A8: You can compile OpenBLAS by</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ make ONLY_CBLAS=1
-</pre></div></div>
-<p>or install it using</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">    $ sudo apt-get install openblas-dev
-</pre></div></div>
-<p>or</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">    $ sudo yum install openblas-devel
-</pre></div></div>
-<p>It is worth noting that you need root access to run the last two commands.  Remember to set the environment variables to include the header and library  paths of OpenBLAS after installation (please refer to the Dependencies section).</p>
-
-<ul>
-  
-<li>Q9: When I build protocol buffer, it reports that GLIBC++_3.4.20 not found in /usr/lib64/libstdc++.so.6.</li>
-</ul>
-<p>A9: This means the linker found libstdc++.so.6 but that library  belongs to an older version of GCC than was used to compile and link the  program. The program depends on code defined in  the newer libstdc++ that belongs to the newer version of GCC, so the linker  must be told how to find the newer libstdc++ shared library.  The simplest way to fix this is to find the correct libstdc++ and export it to  LD_LIBRARY_PATH. For example, if GLIBC++_3.4.20 is listed in the output of the  following command,</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ strings /usr/local/lib64/libstdc++.so.6|grep GLIBC++
-</pre></div></div>
-<p>then you just set your environment variable as</p>
-
-<div class="source">
-<div class="source"><pre class="prettyprint">  $ export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
-</pre></div></div></div></div>
                   </div>
             </div>
           </div>

Added: websites/staging/singa/trunk/content/docs/installation_source.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/installation_source.html (added)
+++ websites/staging/singa/trunk/content/docs/installation_source.html Wed Oct 21 14:53:21 2015
@@ -0,0 +1,672 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2015-10-21 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; Building SINGA from source</title>
+    <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../css/site.css" />
+    <link rel="stylesheet" href="../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa">
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
+        src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../docs/overview.html"  title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../docs/quick-start.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../downloads.html"  title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../docs/index.html"  title="Latest">Latest</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../docs/installation.html"  title="Installation">Installation</a>
+</li>
+                                  <li>      <a href="../docs/programmer-guide.html"  title="Programmer Guide">Programmer Guide</a>
+</li>
+                                  <li>      <a href="../docs/distributed-training.html"  title="Distributed Training">Distributed Training</a>
+</li>
+                                  <li>      <a href="../docs/data.html"  title="Data Preparation">Data Preparation</a>
+</li>
+                                  <li>      <a href="../docs/checkpoint.html"  title="Checkpoint">Checkpoint</a>
+</li>
+                                  <li>      <a href="../docs/test.html"  title="Test">Test</a>
+</li>
+                                  <li>      <a href="../docs/examples.html"  title="Examples">Examples</a>
+</li>
+                                  <li>      <a href="../docs/debug.html"  title="Debug">Debug</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../v0.1.0/index.html"  title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../develop/schedule.html"  title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="../develop/how-contribute.html"  title="How to Contribute">How to Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a href="../develop/contribute-docs.html"  title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../community/source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                  
+                      <li>      <a href="../community/mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../community/issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../community/team-list.html"  title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/"  title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/"  title="NUS Site">NUS Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../index.html" id="bannerLeft" title="Apache SINGA">
+                                                                                                <img src="../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                                                <img src="../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Building SINGA from source</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../docs/overview.html" title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../docs/quick-start.html" title="Quick Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
+      <li>
+  
+                          <a href="../docs/index.html" title="Latest">
+          <span class="icon-chevron-down"></span>
+        Latest</a>
+                    <ul class="nav nav-list">
+                                                                                                  
+      <li>
+  
+                          <a href="../docs/installation.html" title="Installation">
+          <span class="icon-chevron-down"></span>
+        Installation</a>
+                    <ul class="nav nav-list">
+                    
+      <li class="active">
+  
+            <a href="#"><span class="none"></span>From source</a>
+          </li>
+                    
+      <li>
+  
+                          <a href="../docs/docker.html" title="Using Docker">
+          <span class="none"></span>
+        Using Docker</a>
+            </li>
+              </ul>
+        </li>
+                                                                                                                                                                
+      <li>
+  
+                          <a href="../docs/programmer-guide.html" title="Programmer Guide">
+          <span class="icon-chevron-right"></span>
+        Programmer Guide</a>
+                  </li>
+                                                                                                                            
+      <li>
+  
+                          <a href="../docs/distributed-training.html" title="Distributed Training">
+          <span class="icon-chevron-right"></span>
+        Distributed Training</a>
+                  </li>
+                    
+      <li>
+  
+                          <a href="../docs/data.html" title="Data Preparation">
+          <span class="none"></span>
+        Data Preparation</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/checkpoint.html" title="Checkpoint">
+          <span class="none"></span>
+        Checkpoint</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/test.html" title="Test">
+          <span class="none"></span>
+        Test</a>
+            </li>
+                                                                                                                            
+      <li>
+  
+                          <a href="../docs/examples.html" title="Examples">
+          <span class="icon-chevron-right"></span>
+        Examples</a>
+                  </li>
+                    
+      <li>
+  
+                          <a href="../docs/debug.html" title="Debug">
+          <span class="none"></span>
+        Debug</a>
+            </li>
+              </ul>
+        </li>
+                
+      <li>
+  
+                          <a href="../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../develop/schedule.html" title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                                    
+      <li>
+  
+                          <a href="../develop/how-contribute.html" title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../community/source-repository.html" title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/mail-lists.html" title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/issue-tracking.html" title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/team-list.html" title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/" class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/" class="externalLink" title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                                                                   <a href="http://incubator.apache.org" title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" src="http://incubator.apache.org/images/egg-logo.png"    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>Building SINGA from source</h1>
+<hr />
+<div class="section">
+<h2><a name="Dependencies"></a>Dependencies</h2>
+<p>SINGA is developed and tested on Linux platforms.</p>
+<p>The following dependent libraries are required:</p>
+
+<ul>
+  
+<li>
+<p>glog version 0.3.3</p></li>
+  
+<li>
+<p>google-protobuf version 2.6.0</p></li>
+  
+<li>
+<p>openblas version &gt;= 0.2.10</p></li>
+  
+<li>
+<p>zeromq version &gt;= 3.2</p></li>
+  
+<li>
+<p>czmq version &gt;= 3</p></li>
+  
+<li>
+<p>zookeeper version 3.4.6</p></li>
+</ul>
+<p>Optional dependencies include:</p>
+
+<ul>
+  
+<li>lmdb version 0.9.10</li>
+</ul>
+<p>You can install all dependencies into $PREFIX folder by</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># make sure you are in the thirdparty folder
+cd thirdparty
+./install.sh all $PREFIX
+</pre></div></div>
+<p>If $PREFIX is not a system path (e.g., /usr/local/), please export the following variables to continue the building instructions,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
+export CPLUS_INCLUDE_PATH=$PREFIX/include:$CPLUS_INCLUDE_PATH
+export LIBRARY_PATH=$PREFIX/lib:$LIBRARY_PATH
+export PATH=$PREFIX/bin:$PATH
+</pre></div></div>
+<p>More details on using this script is given below.</p></div>
+<div class="section">
+<h2><a name="Building_SINGA_from_source"></a>Building SINGA from source</h2>
+<p>SINGA is built using GNU autotools. GCC (version &gt;= 4.8) is required. There are two ways to build SINGA,</p>
+
+<ul>
+  
+<li>
+<p>If you want to use the latest code, please clone it from  <a class="externalLink" href="https://github.com/apache/incubator-singa.git">Github</a> and execute  the following commands,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">$ git clone git@github.com:apache/incubator-singa.git
+$ cd incubator-singa
+$ ./autogen.sh
+$ ./configure
+$ make
+</pre></div></div></li>
+</ul>
+<p>Note: It is an oversight that we forgot to delete the singa repo under <a class="externalLink" href="https://github.com/orgs/nusinga">nusinga</a>  account after we became Apache Incubator project &#x2013; the source  in that repo was not up to date, and we apologize for any inconvenience.</p>
+
+<ul>
+  
+<li>
+<p>If you download a release package, please follow the instructions below,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">$ tar xvf singa-xxx
+$ cd singa-xxx
+$ ./configure
+$ make
+</pre></div></div>
+<p>Some features of SINGA depend on external libraries. These features can be compiled with <tt>--enable-&lt;feature&gt;</tt>. For example, to build SINGA with lmdb support, you can run:</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">$ ./configure --enable-lmdb
+</pre></div></div></li>
+</ul>
+<!-- -
+Zhongle: please update the code to use the follow command
+
+    $ make test
+
+After compilation, you will find the binary file singatest. Just run it!
+More details about configure script can be found by running:
+
+		$ ./configure -h -->
+<p>After compiling SINGA successfully, the <i>libsinga.so</i> and the executable file <i>singa</i> will be generated into <i>.libs/</i> folder.</p>
+<p>If some dependent libraries are missing (or not detected), you can use the following script to download and install them:</p>
+<!-- -
+to be updated after zhongle changes the code to use
+
+    ./install.sh libname \-\-prefix= -->
+
+<div class="source">
+<div class="source"><pre class="prettyprint"># must goto thirdparty folder
+$ cd thirdparty
+$ ./install.sh LIB_NAME PREFIX
+</pre></div></div>
+<p>If you do not specify the installation path, the library will be installed in the default folder specified by the software itself. For example, if you want to install <tt>zeromq</tt> library in the default system folder, run it as</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">$ ./install.sh zeromq
+</pre></div></div>
+<p>Or, if you want to install it into another folder,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">$ ./install.sh zeromq PREFIX
+</pre></div></div>
+<p>You can also install all dependencies in <i>/usr/local</i> directory:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">$ ./install.sh all /usr/local
+</pre></div></div>
+<p>Here is a table showing the first arguments:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">LIB_NAME  LIBRARIE
+czmq*                 czmq lib
+glog                  glog lib
+lmdb                  lmdb lib
+OpenBLAS              OpenBLAS lib
+protobuf              Google protobuf
+zeromq                zeromq lib
+zookeeper             Apache zookeeper
+</pre></div></div>
+<p>*: Since <tt>czmq</tt> depends on <tt>zeromq</tt>, the script offers you one more argument to indicate <tt>zeromq</tt> location. The installation commands of <tt>czmq</tt> is:</p>
+<!-- -
+to be updated to
+
+    $./install.sh czmq  \-\-prefix=/usr/local \-\-zeromq=/usr/local/zeromq -->
+
+<div class="source">
+<div class="source"><pre class="prettyprint">$./install.sh czmq  /usr/local -f=/usr/local/zeromq
+</pre></div></div>
+<p>After the execution, <tt>czmq</tt> will be installed in <i>/usr/local</i>. The last path specifies the path to zeromq.</p>
+<div class="section">
+<h3><a name="FAQ"></a>FAQ</h3>
+
+<ul>
+  
+<li>Q1:I get error <tt>./configure --&gt; cannot find blas_segmm() function</tt> even I have installed OpenBLAS.</li>
+</ul>
+<p>A1: This means the compiler cannot find the <tt>OpenBLAS</tt> library. If you installed  it to $PREFIX (e.g., /opt/OpenBLAS), then you need to export it as</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ export LIBRARY_PATH=$PREFIX/lib:$LIBRARY_PATH
+  # e.g.,
+  $ export LIBRARY_PATH=/opt/OpenBLAS/lib:$LIBRARY_PATH
+</pre></div></div>
+
+<ul>
+  
+<li>Q2: I get error <tt>cblas.h no such file or directory exists</tt>.</li>
+</ul>
+<p>Q2: You need to include the folder of the cblas.h into CPLUS_INCLUDE_PATH,  e.g.,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ export CPLUS_INCLUDE_PATH=$PREFIX/include:$CPLUS_INCLUDE_PATH
+  # e.g.,
+  $ export CPLUS_INCLUDE_PATH=/opt/OpenBLAS/include:$CPLUS_INCLUDE_PATH
+  # then reconfigure and make SINGA
+  $ ./configure
+  $ make
+</pre></div></div>
+
+<ul>
+  
+<li>Q3:While compiling SINGA, I get error <tt>SSE2 instruction set not enabled</tt></li>
+</ul>
+<p>A3:You can try following command:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ make CFLAGS='-msse2' CXXFLAGS='-msse2'
+</pre></div></div>
+
+<ul>
+  
+<li>Q4:I get <tt>ImportError: cannot import name enum_type_wrapper</tt> from google.protobuf.internal when I try to import .py files.</li>
+</ul>
+<p>A4:After install google protobuf by <tt>make install</tt>, we should install python  runtime libraries. Go to protobuf source directory, run:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ cd /PROTOBUF/SOURCE/FOLDER
+  $ cd python
+  $ python setup.py build
+  $ python setup.py install
+</pre></div></div>
+<p>You may need <tt>sudo</tt> when you try to install python runtime libraries in  the system folder.</p>
+
+<ul>
+  
+<li>Q5: I get a linking error caused by gflags.</li>
+</ul>
+<p>A5: SINGA does not depend on gflags. But you may have installed the glog with  gflags. In that case you can reinstall glog using <i>thirdparty/install.sh</i> into  a another folder and export the LDFLAGS and CPPFLAGS to include that folder.</p>
+
+<ul>
+  
+<li>Q6: While compiling SINGA and installing <tt>glog</tt> on mac OS X, I get fatal error <tt>'ext/slist' file not found</tt></li>
+</ul>
+<p>A6:Please install <tt>glog</tt> individually and try :</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ make CFLAGS='-stdlib=libstdc++' CXXFLAGS='stdlib=libstdc++'
+</pre></div></div>
+
+<ul>
+  
+<li>Q7: When I start a training job, it reports error related with &#x201c;ZOO_ERROR&#x2026;zk retcode=-4&#x2026;&#x201d;.</li>
+</ul>
+<p>A7: This is because the zookeeper is not started. Please start the zookeeper service</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ ./bin/zk-service start
+</pre></div></div>
+<p>If the error still exists, probably that you do not have java. You can simple  check it by</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ java --version
+</pre></div></div>
+
+<ul>
+  
+<li>Q8: When I build OpenBLAS from source, I am told that I need a fortran compiler.</li>
+</ul>
+<p>A8: You can compile OpenBLAS by</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ make ONLY_CBLAS=1
+</pre></div></div>
+<p>or install it using</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">    $ sudo apt-get install openblas-dev
+</pre></div></div>
+<p>or</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">    $ sudo yum install openblas-devel
+</pre></div></div>
+<p>It is worth noting that you need root access to run the last two commands.  Remember to set the environment variables to include the header and library  paths of OpenBLAS after installation (please refer to the Dependencies section).</p>
+
+<ul>
+  
+<li>Q9: When I build protocol buffer, it reports that GLIBC++_3.4.20 not found in /usr/lib64/libstdc++.so.6.</li>
+</ul>
+<p>A9: This means the linker found libstdc++.so.6 but that library  belongs to an older version of GCC than was used to compile and link the  program. The program depends on code defined in  the newer libstdc++ that belongs to the newer version of GCC, so the linker  must be told how to find the newer libstdc++ shared library.  The simplest way to fix this is to find the correct libstdc++ and export it to  LD_LIBRARY_PATH. For example, if GLIBC++_3.4.20 is listed in the output of the  following command,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ strings /usr/local/lib64/libstdc++.so.6|grep GLIBC++
+</pre></div></div>
+<p>then you just set your environment variable as</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">  $ export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
+</pre></div></div></div></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. Apache Singa, Apache, the Apache feather logo, and the Apache Singa project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Modified: websites/staging/singa/trunk/content/docs/layer.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/layer.html (original)
+++ websites/staging/singa/trunk/content/docs/layer.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Layers</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,20 +223,20 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
       <li>
   
                           <a href="../docs/index.html" title="Latest">
           <span class="icon-chevron-down"></span>
         Latest</a>
                     <ul class="nav nav-list">
-                    
+                                                                                        
       <li>
   
                           <a href="../docs/installation.html" title="Installation">
-          <span class="none"></span>
+          <span class="icon-chevron-right"></span>
         Installation</a>
-            </li>
+                  </li>
                                                                                                                                                                           
       <li>
   
@@ -286,7 +286,7 @@
             </li>
               </ul>
         </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">

Modified: websites/staging/singa/trunk/content/docs/lmdb.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/lmdb.html (original)
+++ websites/staging/singa/trunk/content/docs/lmdb.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; </title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,7 +223,7 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
       <li>
   
                           <a href="../docs/index.html" title="Latest">

Added: websites/staging/singa/trunk/content/docs/mesos.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/mesos.html (added)
+++ websites/staging/singa/trunk/content/docs/mesos.html Wed Oct 21 14:53:21 2015
@@ -0,0 +1,535 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2015-10-21 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; </title>
+    <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../css/site.css" />
+    <link rel="stylesheet" href="../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" src="../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa">
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
+        src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../docs/overview.html"  title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../docs/quick-start.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../downloads.html"  title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../docs/index.html"  title="Latest">Latest</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../docs/installation.html"  title="Installation">Installation</a>
+</li>
+                                  <li>      <a href="../docs/programmer-guide.html"  title="Programmer Guide">Programmer Guide</a>
+</li>
+                                  <li>      <a href="../docs/distributed-training.html"  title="Distributed Training">Distributed Training</a>
+</li>
+                                  <li>      <a href="../docs/data.html"  title="Data Preparation">Data Preparation</a>
+</li>
+                                  <li>      <a href="../docs/checkpoint.html"  title="Checkpoint">Checkpoint</a>
+</li>
+                                  <li>      <a href="../docs/test.html"  title="Test">Test</a>
+</li>
+                                  <li>      <a href="../docs/examples.html"  title="Examples">Examples</a>
+</li>
+                                  <li>      <a href="../docs/debug.html"  title="Debug">Debug</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../v0.1.0/index.html"  title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../develop/schedule.html"  title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="../develop/how-contribute.html"  title="How to Contribute">How to Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a href="../develop/contribute-docs.html"  title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../community/source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                  
+                      <li>      <a href="../community/mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../community/issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../community/team-list.html"  title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/"  title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/"  title="NUS Site">NUS Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../index.html" id="bannerLeft" title="Apache SINGA">
+                                                                                                <img src="../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                                                <img src="../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active "></li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../docs/overview.html" title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../docs/quick-start.html" title="Quick Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
+      <li>
+  
+                          <a href="../docs/index.html" title="Latest">
+          <span class="icon-chevron-down"></span>
+        Latest</a>
+                    <ul class="nav nav-list">
+                                                                                        
+      <li>
+  
+                          <a href="../docs/installation.html" title="Installation">
+          <span class="icon-chevron-right"></span>
+        Installation</a>
+                  </li>
+                                                                                                                                                                
+      <li>
+  
+                          <a href="../docs/programmer-guide.html" title="Programmer Guide">
+          <span class="icon-chevron-right"></span>
+        Programmer Guide</a>
+                  </li>
+                                                                                                                                      
+      <li>
+  
+                          <a href="../docs/distributed-training.html" title="Distributed Training">
+          <span class="icon-chevron-down"></span>
+        Distributed Training</a>
+                    <ul class="nav nav-list">
+                    
+      <li class="active">
+  
+            <a href="#"><span class="none"></span>Training on Mesos</a>
+          </li>
+                    
+      <li>
+  
+                          <a href="../docs/architecture.html" title="System Architecture">
+          <span class="none"></span>
+        System Architecture</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/frameworks.html" title="Frameworks">
+          <span class="none"></span>
+        Frameworks</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/communication.html" title="Communication">
+          <span class="none"></span>
+        Communication</a>
+            </li>
+              </ul>
+        </li>
+                    
+      <li>
+  
+                          <a href="../docs/data.html" title="Data Preparation">
+          <span class="none"></span>
+        Data Preparation</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/checkpoint.html" title="Checkpoint">
+          <span class="none"></span>
+        Checkpoint</a>
+            </li>
+                    
+      <li>
+  
+                          <a href="../docs/test.html" title="Test">
+          <span class="none"></span>
+        Test</a>
+            </li>
+                                                                                                                            
+      <li>
+  
+                          <a href="../docs/examples.html" title="Examples">
+          <span class="icon-chevron-right"></span>
+        Examples</a>
+                  </li>
+                    
+      <li>
+  
+                          <a href="../docs/debug.html" title="Debug">
+          <span class="none"></span>
+        Debug</a>
+            </li>
+              </ul>
+        </li>
+                
+      <li>
+  
+                          <a href="../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../develop/schedule.html" title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                                    
+      <li>
+  
+                          <a href="../develop/how-contribute.html" title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../community/source-repository.html" title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/mail-lists.html" title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/issue-tracking.html" title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../community/team-list.html" title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/" class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.comp.nus.edu.sg/~dbsystem/singa/" class="externalLink" title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                                                                   <a href="http://incubator.apache.org" title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" src="http://incubator.apache.org/images/egg-logo.png"    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <p># Distributed Training on Mesos</p>
+<hr />
+<p>This guide explains how to start SINGA distributed training on a Mesos cluster. It assumes that both Mesos and HDFS are already running, and every node has SINGA installed. We assume the architecture depicted below, in which a cluster nodes are Docker container. Refer to <a href="docker.html">Docker guide</a> for details of how to start individual nodes and set up network connection between them (make sure <a class="externalLink" href="http://weave.works/guides/weave-docker-ubuntu-simple.html">weave</a> is running at each node, and the cluster&#x2019;s headnode is running in container <tt>node0</tt>) </p>
+<p><img src="http://www.comp.nus.edu.sg/~dinhtta/files/singa_mesos.png" alt="Nothing" /></p>
+<div class="section">
+<h2><a name="Start_HDFS_and_Mesos"></a>Start HDFS and Mesos</h2>
+<p>Go inside each container, using: <tt>
+docker exec -it nodeX /bin/bash
+</tt> and configure it as follows:</p>
+
+<ul>
+  
+<li>
+<p>On container <tt>node0</tt></p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">hadoop namenode -format
+hadoop-daemon.sh start namenode
+/opt/mesos-0.22.0/build/bin/mesos-master.sh --work_dir=/opt --log_dir=/opt --quiet &gt; /dev/null &amp;
+zk-service.sh start
+</pre></div></div></li>
+  
+<li>
+<p>On container <tt>node1, node2, ...</tt></p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">hadoop-daemon.sh start datanode
+/opt/mesos-0.22.0/build/bin/mesos-slave.sh --master=node0:5050 --log_dir=/opt --quiet &gt; /dev/null &amp;
+</pre></div></div></li>
+</ul>
+<p>To check if the setup has been successful, check that HDFS namenode has registered <tt>N</tt> datanodes, via:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">hadoop dfsadmin -report
+</pre></div></div>
+<div class="section">
+<div class="section">
+<h4><a name="Mesos_logs"></a>Mesos logs</h4>
+<p>Mesos logs are stored at <tt>/opt/lt-mesos-master.INFO</tt> on <tt>node0</tt> and <tt>/opt/lt-mesos-slave.INFO</tt> at other nodes. </p>
+<hr /></div></div></div>
+<div class="section">
+<h2><a name="Starting_SINGA_training_on_Mesos"></a>Starting SINGA training on Mesos</h2>
+<p>Assumed that Mesos and HDFS are already started, SINGA job can be launched at <b>any</b> container. </p>
+<div class="section">
+<div class="section">
+<h4><a name="Launching_job"></a>Launching job</h4>
+
+<ol style="list-style-type: decimal">
+  
+<li>Log in to any container, then  cd incubator-singa/tool/mesos <a name="job_start"></a></li>
+  
+<li>Check that configuration files are correct:
+  
+<ul>
+    
+<li><tt>scheduler.conf</tt> contains information about the master nodes</li>
+    
+<li><tt>singa.conf</tt> contains information about Zookeeper node0</li>
+    
+<li>Job configuration file <tt>job.conf</tt> <b>contains full path to the examples directories (NO RELATIVE PATH!).</b></li>
+  </ul></li>
+  
+<li>
+<p>Start the job:</p>
+  
+<ul>
+    
+<li>If starting for the first time:</li>
+  </ul>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">      ./scheduler &lt;job config file&gt; -scheduler_conf &lt;scheduler config file&gt; -singa_conf &lt;SINGA config file&gt; 
+</pre></div></div>
+  
+<ul>
+    
+<li>If not the first time:</li>
+  </ul>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">      ./scheduler &lt;job config file&gt;
+</pre></div></div></li>
+</ol>
+<p><b>Notes.</b> Each running job is given a <tt>frameworkID</tt>. Look for the log message of the form:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">         Framework registered with XXX-XXX-XXX-XXX-XXX-XXX
+</pre></div></div></div>
+<div class="section">
+<h4><a name="Monitoring_and_Debugging"></a>Monitoring and Debugging</h4>
+<p>Each Mesos job is given a <tt>frameworkID</tt> and a <i>sandbox</i> directory is created for each job. The directory is in the specified <tt>work_dir</tt> (or <tt>/tmp/mesos</tt>) by default. For example, the error during SINGA execution can be found at:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">        /tmp/mesos/slaves/xxxxx-Sx/frameworks/xxxxx/executors/SINGA_x/runs/latest/stderr
+</pre></div></div>
+<p>Other artifacts, like files downloaded from HDFS (<tt>job.conf</tt>) and <tt>stdout</tt> can be found in the same directory. </p></div>
+<div class="section">
+<h4><a name="Stopping"></a>Stopping</h4>
+<p>There are two way to kill the running job:</p>
+
+<ol style="list-style-type: decimal">
+  
+<li>
+<p>If the scheduler is running in the foreground, simply kill it (using <tt>Ctrl-C</tt>, for example).</p></li>
+  
+<li>
+<p>If the scheduler is running in the background, kill it using Mesos&#x2019;s REST API:</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">  curl -d &quot;frameworkId=XXX-XXX-XXX-XXX-XXX-XXX&quot; -X POST http://&lt;master&gt;/master/shutdown
+</pre></div></div></li>
+</ol></div></div></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. Apache Singa, Apache, the Apache feather logo, and the Apache Singa project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Modified: websites/staging/singa/trunk/content/docs/mlp.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/mlp.html (original)
+++ websites/staging/singa/trunk/content/docs/mlp.html Wed Oct 21 14:53:21 2015
@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
-    <title>Apache SINGA &#x2013; </title>
+    <title>Apache SINGA &#x2013; MLP Example</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
     <link rel="stylesheet" href="../css/site.css" />
     <link rel="stylesheet" href="../css/print.css" media="print" />
@@ -185,7 +185,7 @@
         Apache SINGA</a>
                     <span class="divider">/</span>
       </li>
-        <li class="active "></li>
+        <li class="active ">MLP Example</li>
         
                 
                     
@@ -223,20 +223,20 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
       <li>
   
                           <a href="../docs/index.html" title="Latest">
           <span class="icon-chevron-down"></span>
         Latest</a>
                     <ul class="nav nav-list">
-                    
+                                                                                        
       <li>
   
                           <a href="../docs/installation.html" title="Installation">
-          <span class="none"></span>
+          <span class="icon-chevron-right"></span>
         Installation</a>
-            </li>
+                  </li>
                                                                                                                                                                 
       <li>
   
@@ -244,7 +244,7 @@
           <span class="icon-chevron-right"></span>
         Programmer Guide</a>
                   </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">
@@ -403,7 +403,7 @@
                         
         <div id="bodyColumn"  class="span10" >
                                   
-            <p># MLP Example</p>
+            <h1>MLP Example</h1>
 <hr />
 <p>Multilayer perceptron (MLP) is a subclass of feed-forward neural networks. A MLP typically consists of multiple directly connected layers, with each layer fully connected to the next one. In this example, we will use SINGA to train a <a class="externalLink" href="http://arxiv.org/abs/1003.0358">simple MLP model proposed by Ciresan</a> for classifying handwritten digits from the <a class="externalLink" href="http://yann.lecun.com/exdb/mnist/">MNIST dataset</a>.</p>
 <div class="section">

Modified: websites/staging/singa/trunk/content/docs/model-config.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/model-config.html (original)
+++ websites/staging/singa/trunk/content/docs/model-config.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Model Configuration</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,20 +223,20 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
       <li>
   
                           <a href="../docs/index.html" title="Latest">
           <span class="icon-chevron-down"></span>
         Latest</a>
                     <ul class="nav nav-list">
-                    
+                                                                                        
       <li>
   
                           <a href="../docs/installation.html" title="Installation">
-          <span class="none"></span>
+          <span class="icon-chevron-right"></span>
         Installation</a>
-            </li>
+                  </li>
                                                                                                                                                                           
       <li>
   
@@ -286,7 +286,7 @@
             </li>
               </ul>
         </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">

Modified: websites/staging/singa/trunk/content/docs/neural-net.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/neural-net.html (original)
+++ websites/staging/singa/trunk/content/docs/neural-net.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Neural Net</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,20 +223,20 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
       <li>
   
                           <a href="../docs/index.html" title="Latest">
           <span class="icon-chevron-down"></span>
         Latest</a>
                     <ul class="nav nav-list">
-                    
+                                                                                        
       <li>
   
                           <a href="../docs/installation.html" title="Installation">
-          <span class="none"></span>
+          <span class="icon-chevron-right"></span>
         Installation</a>
-            </li>
+                  </li>
                                                                                                                                                                           
       <li>
   
@@ -286,7 +286,7 @@
             </li>
               </ul>
         </li>
-                                                                                                          
+                                                                                                                            
       <li>
   
                           <a href="../docs/distributed-training.html" title="Distributed Training">

Modified: websites/staging/singa/trunk/content/docs/neuralnet-partition.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/neuralnet-partition.html (original)
+++ websites/staging/singa/trunk/content/docs/neuralnet-partition.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Neural Net Partition</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -223,7 +223,7 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
       <li>
   
                           <a href="../docs/index.html" title="Latest">

Modified: websites/staging/singa/trunk/content/docs/overview.html
==============================================================================
--- websites/staging/singa/trunk/content/docs/overview.html (original)
+++ websites/staging/singa/trunk/content/docs/overview.html Wed Oct 21 14:53:21 2015
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2015-10-16 
+ | Generated by Apache Maven Doxia at 2015-10-21 
  | Rendered using Apache Maven Fluido Skin 1.4
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20151016" />
+    <meta name="Date-Revision-yyyymmdd" content="20151021" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache SINGA &#x2013; Introduction</title>
     <link rel="stylesheet" href="../css/apache-maven-fluido-1.4.min.css" />
@@ -221,7 +221,7 @@
         Downloads</a>
             </li>
                               <li class="nav-header">Documentaion</li>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
       <li>
   
                           <a href="../docs/index.html" title="Latest">



Mime
View raw message