singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject [2/2] incubator-singa git commit: SINGA-134 Extend SINGA to run over a GPU cluster
Date Tue, 05 Apr 2016 12:50:05 GMT
SINGA-134 Extend SINGA to run over a GPU cluster

Add file conf/profile, which will be sourced upon ssh.
Environment variables can be written into this file.


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/8b7d1e09
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/8b7d1e09
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/8b7d1e09

Branch: refs/heads/master
Commit: 8b7d1e09ea4891f11680f604ea7d8f405ed4a1ff
Parents: a3c82ca
Author: WANG Sheng <wangsheng1001@gmail.com>
Authored: Tue Apr 5 20:33:03 2016 +0800
Committer: WANG Sheng <wangsheng1001@gmail.com>
Committed: Tue Apr 5 20:46:29 2016 +0800

----------------------------------------------------------------------
 bin/singa-run.sh | 2 +-
 conf/profile     | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/8b7d1e09/bin/singa-run.sh
----------------------------------------------------------------------
diff --git a/bin/singa-run.sh b/bin/singa-run.sh
index 9e53ea5..7f40046 100755
--- a/bin/singa-run.sh
+++ b/bin/singa-run.sh
@@ -86,7 +86,7 @@ singa_run="$exe $args \
 if [ ! -z $job_conf ]; then
   singa_run="$singa_run -conf $job_conf"
 fi
-singa_sshrun="source ~/.profile; cd $SINGA_HOME; $singa_run"
+singa_sshrun="cd $SINGA_HOME; source $SINGA_HOME/conf/profile; $singa_run"
 
 # ssh and start singa processes
 ssh_options="-oStrictHostKeyChecking=no \

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/8b7d1e09/conf/profile
----------------------------------------------------------------------
diff --git a/conf/profile b/conf/profile
new file mode 100644
index 0000000..72a8600
--- /dev/null
+++ b/conf/profile
@@ -0,0 +1,3 @@
+# Please add here the environment variables that cannot be recognized after ssh.
+# This file will be `source`ed upon ssh
+


Mime
View raw message