The environment for gpgpusim simulation
1.8K
The image is created from nvidia/cuda:11.0.3-cudnn8-devel-ubuntu18.04
Ubuntu 18.04
cuda 11.0.3
cudnn 8
gpgpusim
pull the image to the local machine
$ docker pull a1245967/gpgpusim
You can check the image information by the command docker images after you pull the image.
create a container to run gpgpusim
The following command is the simplest way to create the container.
$ docker run -it gpgpusim bash
Note: The container will record each command and the changes of the environment. Therefore, the container size will become larger. We recommend to mount a folder to host and remove the container while exiting the container.
$ docker run -it --rm -v your_folder_in_host:/root gpgpusim bash
This command will let your host folder become the $HOME for root in the container. You can put your project in there for easier access between host and container.
put the cuda example into the container
You can put the example code at the folder where you mount the container. Besides, you can push/pull your code by git.
compile the cuda code by nvcc
$ nvcc --cudart shared -o vecadd vecadd.cu
Note: You need to add flag --cudart shared if you use the gpgpusim as the simulator.
move the execution file to the config folder and run the program
$ mv vecadd SM7_TITANV
$ cd SM7_TITANV
$ ./vecadd
Content type
Image
Digest
Size
3.5 GB
Last updated
almost 5 years ago
docker pull a1245967/gpgpusim