how to use gem5-gpu?

285 views
Skip to first unread message

evebc

unread,
Oct 20, 2017, 10:29:20 PM10/20/17
to gem5-gpu Developers List
Hi all,
i am new in gem5-gpu, i want to use it.But i don't known how to download and configure it.
Can you tell me about it or tell me something about it?
Thank you 

Best regards,
evebc

Jimmy Chao

unread,
Oct 21, 2017, 5:02:22 AM10/21/17
to gem5-gpu Developers List
Hi, 

You can read the website first

Jimmy

evebc於 2017年10月21日星期六 UTC+8上午10時29分20秒寫道:

Jimmy Chao

unread,
Oct 22, 2017, 10:38:53 PM10/22/17
to gem5-gpu Developers List

Install nvidia driver

http://www.nvidia.com/Download/index.aspx?lang=en-us

ctrl + alt + F1

cd ~/Downloads/

chmod +x NVIDIA-Linux-x86_64-352.30.run

sudo service lightdm stop

sudo  sh NVIDIA-Linux-x86_64-352.30.run

sudo service lightdm start

ctrl + alt + F7

If you can’t install nvidia driver and say need to stop nouveau

https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver


sudo apt-get remove nvidia* && sudo apt autoremove

sudo apt-get install dkms build-essential linux-headers-generic

sudo emacs -nw  /etc/modprobe.d/blacklist.conf

type

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

sudo update-initramfs -u

restart

Install CUDA Toolkit 3.2

https://developer.nvidia.com/cuda-toolkit-42-archive

cd ~/Downloads/

chmod +x cudatoolkit_3.2.16_linux_64_ubuntu10.04.run

sudo sh ./cudatoolkit_3.2.16_linux_64_ubuntu10.04.run


sudo emacs -nw cuda.conf

sudo echo "/usr/local/cuda/lib64" > /etc/ld.so.conf.d/cuda.conf

sudo echo "/usr/local/cuda/lib" >> /etc/ld.so.conf.d/cuda.conf

sudo ldconfig


sudo emacs -nw .bashrc


export PATH=$PATH:/usr/local/cuda/bin

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib

source .bashrc

set path

cd /etc/ | sudo emacs -nw environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

to

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin"

source environment

Install NVIDIA CUDA SDK

cd ~/Downloads/

chmod +x gpucomputingsdk_3.2.16_linux.run

sudo sh ./gpucomputingsdk_3.2.16_linux.run


Enter install path (default ~/NVIDIA_GPU_Computing_SDK):


Could not locate CUDA. Enter the full path to CUDA.

If you do not know the path, accept the default and then

modify the CUDA_INSTALL_PATH variable in


/home/seal/NVIDIA_GPU_Computing_SDK/C/common/common.mk.


Enter CUDA install path (default /usr/local/cuda):


Compile

sudo apt-get install build-essential libx11-dev libglu1-mesa-dev freeglut3-dev libxi-dev libxmu-dev


sudo apt-get install gcc-4.4 g++-4.4


sudo emacs -nw  /etc/apt/sources.list


deb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe


~/NVIDIA_GPU_Computing_SDK/C/common/common.mk Line 58:

# Compilers

NVCC := $(CUDA_INSTALL_PATH)/bin/nvcc

CXX := g++-4.4 -fPIC

CC := gcc-4.4 -fPIC

LINK := g++-4.4 -fPIC


configure gcc g++

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100

sudo update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 100

sudo update-alternatives --config g++

cd ~/NVIDIA_GPU_Computing_SDK/C

sudo make


Then you possible encounter this problem


Solved and modify: 

gpgpu-sim/option_parser.cc
if(ss.fail || ss.bad){
    ss.exceptions(stringstream::failbit | stringstream::badbit);
}

evebc於 2017年10月21日星期六 UTC+8上午10時29分20秒寫道:
Reply all
Reply to author
Forward
0 new messages