Skip to content

Commit edb603e

Browse files
committed
dockerfile building correctly
1 parent 30f375a commit edb603e

1 file changed

Lines changed: 28 additions & 10 deletions

File tree

Dockerfile

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM nvidia/cuda:12.6.0-devel-ubuntu24.04
33
# Set non-interactive frontend for apt-get to avoid prompts
44
ENV DEBIAN_FRONTEND=noninteractive
55

6+
# Change default shell to bash
7+
SHELL ["/bin/bash", "-c"]
8+
69
# Update packages, install build dependencies, and the specified version of CMake
710
RUN apt-get update && \
811
apt-get upgrade -y && \
@@ -12,25 +15,40 @@ RUN apt-get update && \
1215
./cmake-3.28.0-linux-x86_64.sh --skip-license --prefix=/usr/local && \
1316
rm cmake-3.28.0-linux-x86_64.sh
1417

18+
19+
# Set the working directory
20+
WORKDIR /gpu-flopbench
21+
22+
# Copy the requirements file into the container
23+
COPY ./requirements.txt ./requirements.txt
24+
1525
# install miniconda
1626
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
17-
bash ~/Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/anaconda3 && \
18-
rm Miniconda3-latest-Linux-x86_64.sh && \
19-
source ~/anaconda3/bin/activate && \
27+
bash ./Miniconda3-latest-Linux-x86_64.sh -b -p ~/anaconda3 && \
28+
rm ./Miniconda3-latest-Linux-x86_64.sh
29+
30+
RUN source ~/anaconda3/bin/activate && \
2031
conda init --all && \
21-
conda create --name "hecbench-roofline" python=3.11.11 && \
22-
conda activate hecbench-roofline && \
23-
pip install -r ./requirements.txt
32+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
33+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
2434

35+
RUN source ~/anaconda3/bin/activate && \
36+
conda create --name "gpu-flopbench" python=3.11.11 && \
37+
conda activate gpu-flopbench
2538

26-
# Set the working directory
27-
WORKDIR /hecbench-roofline
39+
RUN source ~/anaconda3/bin/activate && \
40+
conda activate gpu-flopbench && \
41+
conda install --channel conda-forge pygraphviz
42+
43+
RUN source ~/anaconda3/bin/activate && \
44+
conda activate gpu-flopbench && \
45+
pwd && ls -lah && pip install -r ./requirements.txt
2846

2947
# Copy the source code into the container
3048
COPY . .
3149

3250
# Config with CMake, and build all the codes
33-
RUN source ./runBuild.sh
51+
#RUN source ./runBuild.sh
3452

3553
# Verify that executables were built
36-
RUN test -n "$(find build -maxdepth 1 -type f -executable)" || (echo "No executables found in ./build" && exit 1)
54+
#RUN test -n "$(find build -maxdepth 1 -type f -executable)" || (echo "No executables found in ./build" && exit 1)

0 commit comments

Comments
 (0)