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.
Hi I met a problem after successfully building ispass2009 benchmarks. When i tried to run the simulator, the last few line says
ReplyDeleteXML Parsing error inside file 'gpuwattch_quadrofx5600.xml'.
Error: File not found
At line 0, column 0.
Do you know what problem it might be? I checked that the xml file do exist. Also what linux version are you using? Thank you!
Hi I think you should disable power simulation in gpgpusim.config in the quadro_fx5600 folder
Deleteotherwise, please insert gpuwattch file into corresponding folder
what should I do if have ubuntu 14.04LTS?? will it still work??
ReplyDeleteHey I am asking the above question again. Will I be able to install 4.2 toolkit for ubuntu 14.04???
ReplyDeleteI followed all the steps. I get no cuda capable device detected when I do devicequery. Any help would be useful.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHi I was trying to run simulations on GPGPU-Sim. but got stuck with an error "NVIDIA: no NVIDIA devices found". can you please help me with this
ReplyDeleteIf you are using nvcc compiler, you need to pass the cudart flag.
DeleteCan you with installing GpGPU-sim in windows?
ReplyDeleteThanks for sharing this post because this very useful and informative thanks again !!
ReplyDeleteBulk SMS Services in Delhi
Website Development Delhi
Website Design Delhi