1. download GPGPU-sim: git clone git://dev.ece.ubc.ca/gpgpu-sim
2. Install dependencies as described in /gpgpu-sim/v3.x/README. For Ubuntu you can actually use 'sudo apt-get install xxx' to install most of them. gcc and g++ 4.4 and 4.5 both work well but 4.1 and 4.7 don't work. if you need to set symbolic link of gcc, here is a link showing how to do it: click here.
3. Install cuda toolkit and SDK. Note that don't use the latest CUDA 5.5 or something newer because the latest cuda integrates cuda toolkit, Nvidia driver and cuda SDK into one package. If you don't get a NVIDIA video card, the installation always aborts. So here I download cuda toolkit 4.2, https://developer.nvidia.com/cuda-toolkit-42-archive, and corresponding SDK. The nvidia driver is not needed. Just install toolkit and SDK. Some error might be reported during building SDK but it's ok to ignore them.
What matters is the library generated in /NVIDIA_GPU_Computing_SDK/C/lib, which is needed when building benchmarks
Next,
export CUDA_INSTALL_PATH=/usr/local/cuda
export PATH=$PATH:$CUDA_INSTALL_PATH/bin
as mentioned in /gpgpu-sim/v3.x/README
4. Now you are ready to build the simulator. In /gpgpu-sim/v3.x,
source setup_environment
make
if some library can not be found, type:
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/usr/local/cuda/lib64
if some library can not be found, type:
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/usr/local/cuda/lib64
5. Next step is to compile the ispass2009-benchmarks. Open /gpgpu-sim/ispass2009-benchmarks/README.ISPASS-2009, and set the environment variables it mentioned. Open /gpgpu-sim/ispass2009-benchmarks and change 'ROOTDIR' to your setting.
Then it should be ready to run:
make -f Makefile.ispass-2009
Note that building some benchmarks can be failed given your NVIDIA SDK library. Just comment them out in Makefile.ispass-2009 and build the rest. In the end most of benchmarks can be built successfully. In my case, AES, CP and DG fails but the rest 8 benchmarks are built successfully.
6. Follow the steps in /gpgpu-sim/ispass2009-benchmarks/README.ISPASS-2009 and bingo your gpgpusim should run with real benchmarks just fine without a gpu card.