summaryrefslogtreecommitdiff
path: root/setup_environment
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2012-12-13 10:24:21 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:23 -0700
commit0d5c285b5b3e8aea6ab1662f0993225d39d9047f (patch)
tree32a1fe831110eacf85f444e5eecbfefaf22c300f /setup_environment
parent3e905c75c3a83cf68720178144a47613e75585a3 (diff)
clean up setup_environment
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14796]
Diffstat (limited to 'setup_environment')
-rw-r--r--setup_environment10
1 files changed, 3 insertions, 7 deletions
diff --git a/setup_environment b/setup_environment
index 79dd34a..34495ba 100644
--- a/setup_environment
+++ b/setup_environment
@@ -5,7 +5,7 @@ export GPGPUSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"
GPGPUSIM_VERSION_STRING=`cat $GPGPUSIM_ROOT/version | awk '/Version/ {print $8}'`
GPGPUSIM_BUILD_STRING=`cat $GPGPUSIM_ROOT/version | awk '/Change/ {print $6}'`
-echo "GPGPU-Sim version $GPGPUSIM_VERSION_STRING (build $GPGPUSIM_BUILD_STRING)";
+echo -n "GPGPU-Sim version $GPGPUSIM_VERSION_STRING (build $GPGPUSIM_BUILD_STRING) ";
if [ ! -n "$CUDA_INSTALL_PATH" ]; then
echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH.";
@@ -100,15 +100,13 @@ fi
# The following checks to see if the GPGPU-Sim power model is enabled.
# GPGPUSIM_POWER_MODEL points to the directory where gpgpusim_mcpat is located.
# If this is not set, it checks the default directory "distribution/../mcpat/".
-echo "=== GPGPUSim Power model ==="
if [ -d $GPGPUSIM_ROOT/src/mcpat/ ]; then
if [ ! -f $GPGPUSIM_ROOT/src/mcpat/gpgpu_sim.verify ]; then
echo "ERROR ** gpgpu_sim.verify not found in $GPGPUSIM_ROOT/../mcpat";
return;
fi
export GPGPUSIM_POWER_MODEL=$GPGPUSIM_ROOT/src/mcpat/;
- echo "GPGPU-Sim_McPAT power model detected... Using default directory $GPGPUSIM_POWER_MODEL.";
- echo "If you want to specify a non-default directory, modify GPGPUSIM_POWER_MODEL manually after running setup_environment."
+ echo "configured with GPUWattch.";
elif [ -n "$GPGPUSIM_POWER_MODEL" ]; then
if [ ! -f $GPGPUSIM_POWER_MODEL/gpgpu_sim.verify ]; then
echo "ERROR ** gpgpu_sim.verify not found in $GPGPUSIM_ROOT/../mcpat/ - Either incorrect directory or incorrect McPAT version";
@@ -119,10 +117,8 @@ elif [ ! -d $GPGPUSIM_POWER_MODEL ]; then
echo "ERROR ** GPGPUSIM_POWER_MODEL ($GPGPUSIM_POWER_MODEL) does not exist... Please set this to the gpgpusim_mcpat directory or unset this environment variable.";
return;
else
- echo "GPGPU-Sim_McPAT power model not detected...";
+ echo " configured without a power model";
fi
-echo "============================"
-
echo "setup_environment succeeded";