This script will install gpgpusim on your system.
Currently it can only install gpgpusim with cuda 9 but maybe if i can find some spare time in future i will add cuda 11.x to it as well.
- Bootstrap debian 7.
- Install GCC 5 on it.
- Install CUDA 9 on it.
- Install gpgpusim on it.
- Generate some scripts for ease of use.
Debian/Ubuntu
sudo apt install debootstrap make gcc git wget
Arch
sudo pacman -S debootstrap make gcc git wget
Fedora
dnf install debootstrap make gcc git wget
git clone https://github.com/thegraveyardwarden/gpgpusim-install.git && cd gpgpusim-install && make
usage: bin/gpgpusim-install COMMAND [OPTIONS]
COMMANDS:
reinstall: restart the operation and ignore checkpoints
install: start installation
OPTIONS
-g: path to gcc 5 tar file (if not present it will be downloaded)
-c: path to cuda 9 run file (if not present it will be downloaded)
-d: path to install debian (if not present /opt/wheezy)
So if it's your first time trying to install you probably don't have cuda 9 runfile or gcc 5 tar file. just run:
bin/gpgpusim-install install
It will download them for you.
When installer wants to install cuda it will ask you some questions:
- Installing cuda 9...Do you accept the previously read EULA? -> y
- You are attempting to install on an unsupported configuration. Do you wish to continue? -> y
- Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81? -> n
- Install the CUDA 9.0 Toolkit? -> y
- Enter Toolkit Location -> leave blank for default
- Do you want to install a symbolic link at /usr/local/cuda? -> y
- Install the CUDA 9.0 Samples? -> y
- Enter CUDA Samples Location -> /opt
This is my prefrence. Change them if you want.
Now you can run this command when you want to chroot to debian and use gpgpusim:
gpgpusim-use
Ctrl+D pops you out into your own os.
gpgpusim files are under root directory.