summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment13
1 files changed, 9 insertions, 4 deletions
diff --git a/setup_environment b/setup_environment
index 179a363..2d3e59d 100644
--- a/setup_environment
+++ b/setup_environment
@@ -12,11 +12,11 @@ export BOOST_LIB=/usr/lib64
export BOOST_VER=
export NVOPENCL_LIBDIR=/usr/lib64
-# change the following to point to your installation of the NVIDIA compute SDK
-export NVIDIA_COMPUTE_SDK_LOCATION=~/cuda/sdk/3.1/
+# change this to point to your installation of the NVIDIA compute SDK
+export NVIDIA_COMPUTE_SDK_LOCATION=~/NVIDIA_GPU_Computing_SDK
# change the following to point to your installation of CUDA Toolkit
-export CUDA_INSTALL_PATH=~/cuda/toolkit/3.1/
+export CUDA_INSTALL_PATH=$HOME/nvcuda/3.1/cuda
# setting LD_LIBRARY_PATH as follows enables GPGPU-Sim to be invoked by
# native CUDA and OpenCL applications. GPGPU-Sim is dynamically linked
@@ -29,4 +29,9 @@ export PATH=$GPGPUSIM_ROOT/bin:$CUDA_INSTALL_PATH/bin:$PATH
# 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
-# export OPENCL_REMOTE_GPU_HOST=host.domain
+if [ `hostname -d`="ece.ubc.ca" ]; 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