From f10b93eae05cafe2d6ea18e146d517d96d94c133 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 31 May 2012 16:34:41 -0800 Subject: - adding clearer documentation to setup_environment - removing an assert that gets triggered when using CUDA 4.2 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12865] --- setup_environment | 19 +++++++++++++++---- src/cuda-sim/ptx_ir.cc | 1 - 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/setup_environment b/setup_environment index 79b0b3b..c1288a9 100644 --- a/setup_environment +++ b/setup_environment @@ -1,14 +1,25 @@ # see README before running this -# change the following to point to your installation of CUDA Toolkit if [ ! -n "$CUDA_INSTALL_PATH" ]; then - if [ -d $HOME/nvcuda/4.0/cuda ]; then - export CUDA_INSTALL_PATH=$HOME/nvcuda/4.0/cuda + + # Be sure to compile GPGPU-Sim with the same version of the CUDA + # Toolkit that you use to compile an application you want to run on + # GPGPU-Sim. + # + # If you need to use multiple CUDA Toolkit versions (e.g., one for + # GPGPU-Sim, and another for some other project), then you can change + # the following line to point to a local install of the CUDA Toolkit + # (this should be a verson that GPGPU-Sim supports). + + MYCUDA_INSTALL_PATH=$HOME/nvcuda/4.2.9/cuda + + if [ -d $MYCUDA_INSTALL_PATH ]; then + export CUDA_INSTALL_PATH=$MYCUDA_INSTALL_PATH fi fi if [ ! -n "$CUDA_INSTALL_PATH" ]; then echo ""; - echo "ERROR ** Install CUDA Toolkit and edit this file to point to it."; + echo "ERROR ** Install CUDA Toolkit then set CUDA_INSTALL_PATH or edit this file."; echo ""; return; fi diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index 5f8410b..50669b6 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -115,7 +115,6 @@ unsigned symbol_table::get_sm_target() const void symbol_table::set_ptx_version( float ver, unsigned ext ) { m_ptx_version = ptx_version(ver,ext); - assert( m_ptx_version.ver() < 3 ); } void symbol_table::set_sm_target( const char *target, const char *ext, const char *ext2 ) -- cgit v1.3