11FROM nvidia/cuda:12.6.0-devel-ubuntu24.04
22
3- # ARG HOSTOS=linux
4-
53# Set non-interactive frontend for apt-get to avoid prompts
64ENV DEBIAN_FRONTEND=noninteractive
75
@@ -24,20 +22,14 @@ RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 1
2422 update-alternatives --install /usr/bin/llvm-cxxfilt llvm-cxxfilt /usr/bin/llvm-cxxfilt-18 100
2523
2624# clone the repo into the container
27- RUN git clone https:// github.com/ Scientific-Computing-Lab/gpuFLOPBench.git /gpu-flopbench
25+ RUN git clone git@ github.com: Scientific-Computing-Lab/gpuFLOPBench.git /gpu-flopbench
2826
2927# get the LFS files
3028RUN cd /gpu-flopbench && git checkout camera-ready && git pull && git lfs pull && git lfs fetch --all && git lfs checkout
3129
3230# Set the working directory
3331WORKDIR /gpu-flopbench
3432
35- # Copy the requirements file into the container
36- # COPY ./requirements.txt ./requirements.txt
37-
38- # if we are on a windows host, we need to remove the CRLF characters from all the files
39- # RUN sed -i 's/\r$//' requirements.txt
40-
4133# install miniconda
4234RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
4335 bash ./Miniconda3-latest-Linux-x86_64.sh -b -p ~/anaconda3 && \
@@ -60,40 +52,9 @@ RUN source ~/anaconda3/bin/activate && \
6052 conda activate gpu-flopbench && \
6153 pwd && ls -lah && pip install -r /gpu-flopbench/requirements.txt
6254
63- # Copy the source code into the container
64- # COPY . .
65-
66-
67- # Run git-lfs pull to get large files
68- # RUN git lfs install && \
69- # git lfs pull && \
70- # git lfs fetch --all \
71- # && git lfs checkout
72-
73- # if we are on a windows host, we need to remove the CRLF characters from all the files
74- # RUN find . -type f -exec sed -i 's/\r$//' {} +
75- # RUN if [ "$HOSTOS" = "windows" ]; then \
76- # echo "Removing CRLF characters from files..."; \
77- # find . -type f \
78- # -not -name "*.gz" \
79- # -not -name "*.zip" \
80- # -not -name "*.rar" \
81- # -not -name "*.7z" \
82- # -not -name "*.tar" \
83- # -not -name "*.bz2" \
84- # -not -name "*.tar.*" \
85- # -exec sed -i 's/\r$//' {} +; \
86- # else \
87- # echo "HOSTOS is not windows; skipping CRLF removal."; \
88- # fi
89-
9055# write out to the bashrc to source conda and activate the environment on container startup
9156RUN echo 'conda activate gpu-flopbench' >> ~/.bashrc
9257
93- # one of the issues with a windows host is that the execute permissions are not preserved when copying files into the container
94- # this is okay, and it seems like everything works fine without needing to change it.
95-
96-
9758# set an environment variable for convenience
9859ENV GPU_FLOPBENCH_ROOT=/gpu-flopbench
9960
0 commit comments