Skip to content

Commit

Permalink
sst-integration: use prebuilt image and limit compilation core to use
Browse files Browse the repository at this point in the history
  • Loading branch information
William-An committed Aug 23, 2024
1 parent 9a60f55 commit 9b7800c
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7

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

Expand All @@ -9,19 +9,6 @@ ENV CUDA_INSTALL_PATH /usr/local/cuda-11.7
ENV PTXAS_CUDA_INSTALL_PATH /usr/local/cuda-11.7
ENV GPUAPPS_ROOT /accel-sim/gpu-app-collection

# Setup GPGPU-Sim dependencies and CUDA 11.7
RUN apt-get update \
&& apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \
libxml2-dev vim python-setuptools python3-pip cmake \
&& apt-get clean \
&& pip3 install pyyaml plotly psutil \
&& wget https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_515.43.04_linux.run \
&& sh cuda_11.7.0_515.43.04_linux.run --silent --toolkit \
&& rm cuda_11.7.0_515.43.04_linux.run \
&& rm -rf /usr/local/cuda-11.7/nsight-compute-2022.2.0 \
&& rm -rf /usr/local/cuda-11.7/nsight-systems-2022.1.3

# Build LLVM 18.1.8
RUN git clone https://github.com/llvm/llvm-project.git \
&& mkdir llvm-install \
Expand All @@ -31,7 +18,7 @@ RUN git clone https://github.com/llvm/llvm-project.git \
&& mkdir build && cd build \
&& cmake -DLLVM_TARGETS_TO_BUILD="RISCV;X86;NVPTX" -DLLVM_DEFAULT_TARGET_TRIPLE=riscv64-unknown-linux-gnu \
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_INSTALL_PREFIX=$LLVM_INSTALL_PATH ../llvm \
&& cmake --build . -j \
&& cmake --build . -j4 \
&& cmake --build . --target install \
&& cd .. && cd ..

Expand All @@ -42,7 +29,7 @@ RUN git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git \
&& cd riscv-gnu-toolchain \
&& git checkout 2024.08.06 \
&& ./configure --prefix=$RISCV_INSTALL_PATH \
&& make linux -j \
&& make linux -j4 \
&& cd ..

# Setup GPU app collection
Expand Down

0 comments on commit 9b7800c

Please sign in to comment.