summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2011-11-29 13:45:30 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:01 -0700
commitbf41c3cd7b96e94389333f5585605a11db5d9d4e (patch)
tree03dd66857d2b12ff9b74a7466d631e47efd41324 /setup_environment
parent09ea93ddb2b584c44c4360c9dc30a167a72a0b3e (diff)
Allowing for an already set remote opencl host
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11051]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup_environment b/setup_environment
index a5c0007..54c0280 100644
--- a/setup_environment
+++ b/setup_environment
@@ -47,11 +47,11 @@ export PATH=$GPGPUSIM_ROOT/decuda/:$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PA
# SSH to remote node to generate PTX for OpenCL kernels when running on
# a node that does not have an NVIDIA driver installed.
# The remote node should have GPGPU-Sim installed at the same path
-if [ `hostname -d` == "ece.ubc.ca" ]; then
+if [ `hostname -d` == "ece.ubc.ca" -a "$OPENCL_REMOTE_GPU_HOST" == "" ]; then
export OPENCL_REMOTE_GPU_HOST=aamodt-pc05.ece.ubc.ca
- if [ `hostname -f` == $OPENCL_REMOTE_GPU_HOST ]; then
- unset OPENCL_REMOTE_GPU_HOST
- fi
+fi
+if [ `hostname -f` == $OPENCL_REMOTE_GPU_HOST ]; then
+ unset OPENCL_REMOTE_GPU_HOST
fi
# the following are required to use native SASS via decuda