From b24f65b3591516aed1e972c32ba18d104f867c50 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Wed, 25 Jul 2012 09:17:31 -0800 Subject: Correct typos [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13511] --- setup_environment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_environment b/setup_environment index b7de5aa..d28e154 100644 --- a/setup_environment +++ b/setup_environment @@ -68,7 +68,7 @@ fi CUDA_VERSION_STRING=`$CUDA_INSTALL_PATH/bin/nvcc --version | awk '/release/ {print $5;}' | sed 's/,//'`; CUDA_VERSION_NUMBER=`echo $CUDA_VERSION_STRING | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($1), 10*$2);}'` -if [ $CUDA_VERSION -gt 4000 -o $CUDA_VERSION -lt 2030 ]; then +if [ $CUDA_VERSION_NUMBER -gt 4000 -o $CUDA_VERSION_NUMBER -lt 2030 ]; then GPGPUSIM_VERSION_STRING=`cat version | awk '/Version/ {print $8}'` echo "ERROR ** GPGPU-Sim version $GPGPUSIM_VERSION_STRING not tested with CUDA version $CUDA_VERSION_STRING (please see README)"; return; @@ -78,7 +78,7 @@ fi # 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 [ `uname` = "Darwin" ]; then +if [ `uname` == "Darwin" ]; then HOSTNAME_PREFIX=`hostname -s`; export HOSTNAME_DOMAIN=`hostname | sed s/$HOSTNAME_PREFIX\.//`; else -- cgit v1.3