Skip to content

Commit e1684da

Browse files
authored
Merge pull request #2 from Connie120/Ubuntu-24.04-cuda-12.8
Updated dockerfile for ubuntu 24.04 CUDA 12.8
2 parents 89906bc + 3fe5c3f commit e1684da

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
lines changed

Dockerfile

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
1-
FROM ubuntu:22.04
1+
FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu24.04
22

33
SHELL ["/bin/bash", "-c"]
44

55
WORKDIR /accel-sim
66
ADD . /accel-sim
77

8-
ENV CUDA_INSTALL_PATH /usr/local/cuda-11.7
9-
ENV PTXAS_CUDA_INSTALL_PATH /usr/local/cuda-11.7
10-
ENV GPUAPPS_ROOT /accel-sim/gpu-app-collection
8+
ENV CUDA_INSTALL_PATH=/usr/local/cuda
9+
ENV PTXAS_CUDA_INSTALL_PATH=/usr/local/cuda
10+
#ENV GPUAPPS_ROOT /accel-sim/gpu-app-collection
1111

12-
RUN apt-get update \
13-
&& apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
12+
RUN apt-get update
13+
RUN apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
1414
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \
15-
libxml2-dev vim python-setuptools python3-pip cmake \
16-
&& apt-get clean \
17-
&& pip3 install pyyaml plotly psutil \
18-
&& wget https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_515.43.04_linux.run \
19-
&& sh cuda_11.7.0_515.43.04_linux.run --silent --toolkit \
20-
&& rm cuda_11.7.0_515.43.04_linux.run \
21-
&& rm -rf /usr/local/cuda-11.7/nsight-compute-2022.2.0 \
22-
&& rm -rf /usr/local/cuda-11.7/nsight-systems-2022.1.3
15+
libxml2-dev vim python3-setuptools python3-pip python3-venv cmake \
16+
libfreeimage3 libfreeimage-dev
17+
RUN apt-get clean
18+
19+
# Create and activate a virtual environment, venv is needed because of PEP 668
20+
RUN python3 -m venv /venv
21+
ENV PATH="/venv/bin:$PATH"
22+
RUN pip3 install --upgrade pip
23+
RUN pip3 install pyyaml plotly psutil
2324

24-
RUN export PATH=$CUDA_INSTALL_PATH/bin:$PATH \
25-
&& git clone https://github.com/accel-sim/gpu-app-collection \
26-
&& source ./gpu-app-collection/src/setup_environment \
27-
&& make -j -C ./gpu-app-collection/src rodinia_2.0-ft \
28-
&& make -j -C ./gpu-app-collection/src GPU_Microbenchmark \
29-
&& make -j -C ./gpu-app-collection/src data \
30-
&& rm gpucomputingsdk_4.2.9_linux.run \
31-
&& rm -rf 4.2

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Dockerfile for Accel-Sim
22

33
This repo hosts the Dockerfiles used in regression tests for Accel-Sim and GPGPU-Sim.
4-
The image can be pull from Docker Hub [tgrogers/accel-sim_regress](https://hub.docker.com/r/tgrogers/accel-sim_regress)
4+
The image can be pull from Docker Hub [accelsim/development](https://hub.docker.com/repository/docker/accelsim/development/general)
55
```
6-
docker pull tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
6+
docker pull accelsim/development:cuda-12.8.0-ubuntu24.04
77
```
88

99
To run tests:
1010
```
1111
# in accel-sim-framework
12-
docker run tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 /bin/bash short-tests.sh
13-
```
12+
docker run accelsim/development:cuda-12.8.0-ubuntu24.04 /bin/bash short-tests.sh
13+
```

0 commit comments

Comments
 (0)