Skip to content

Commit 3486509

Browse files
committed
Updated Dockerfile
Changed to cloning repo in dockerfile and doing lfs pulls
1 parent 9082ccf commit 3486509

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

Dockerfile

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM nvidia/cuda:12.6.0-devel-ubuntu24.04
22

3-
ARG HOSTOS=linux
3+
# ARG HOSTOS=linux
44

55
# Set non-interactive frontend for apt-get to avoid prompts
66
ENV DEBIAN_FRONTEND=noninteractive
@@ -23,15 +23,19 @@ RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 1
2323
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100 && \
2424
update-alternatives --install /usr/bin/llvm-cxxfilt llvm-cxxfilt /usr/bin/llvm-cxxfilt-18 100
2525

26+
# clone the repo into the container
27+
RUN git clone https://github.com/Scientific-Computing-Lab/gpuFLOPBench.git /gpu-flopbench
28+
29+
RUN cd /gpu-flopbench && git checkout camera-ready && git pull && git lfs pull
2630

2731
# Set the working directory
2832
WORKDIR /gpu-flopbench
2933

3034
# Copy the requirements file into the container
31-
COPY ./requirements.txt ./requirements.txt
35+
# COPY ./requirements.txt ./requirements.txt
3236

3337
# if we are on a windows host, we need to remove the CRLF characters from all the files
34-
RUN sed -i 's/\r$//' requirements.txt
38+
# RUN sed -i 's/\r$//' requirements.txt
3539

3640
# install miniconda
3741
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
@@ -53,10 +57,11 @@ RUN source ~/anaconda3/bin/activate && \
5357

5458
RUN source ~/anaconda3/bin/activate && \
5559
conda activate gpu-flopbench && \
56-
pwd && ls -lah && pip install -r ./requirements.txt
60+
pwd && ls -lah && pip install -r /gpu-flopbench/requirements.txt
5761

5862
# Copy the source code into the container
59-
COPY . .
63+
# COPY . .
64+
6065

6166
# Run git-lfs pull to get large files
6267
#RUN git lfs install && \
@@ -66,20 +71,20 @@ COPY . .
6671

6772
# if we are on a windows host, we need to remove the CRLF characters from all the files
6873
#RUN find . -type f -exec sed -i 's/\r$//' {} +
69-
RUN if [ "$HOSTOS" = "windows" ]; then \
70-
echo "Removing CRLF characters from files..."; \
71-
find . -type f \
72-
-not -name "*.gz" \
73-
-not -name "*.zip" \
74-
-not -name "*.rar" \
75-
-not -name "*.7z" \
76-
-not -name "*.tar" \
77-
-not -name "*.bz2" \
78-
-not -name "*.tar.*" \
79-
-exec sed -i 's/\r$//' {} +; \
80-
else \
81-
echo "HOSTOS is not windows; skipping CRLF removal."; \
82-
fi
74+
# RUN if [ "$HOSTOS" = "windows" ]; then \
75+
# echo "Removing CRLF characters from files..."; \
76+
# find . -type f \
77+
# -not -name "*.gz" \
78+
# -not -name "*.zip" \
79+
# -not -name "*.rar" \
80+
# -not -name "*.7z" \
81+
# -not -name "*.tar" \
82+
# -not -name "*.bz2" \
83+
# -not -name "*.tar.*" \
84+
# -exec sed -i 's/\r$//' {} +; \
85+
# else \
86+
# echo "HOSTOS is not windows; skipping CRLF removal."; \
87+
# fi
8388

8489
# write out to the bashrc to source conda and activate the environment on container startup
8590
RUN echo 'conda activate gpu-flopbench' >> ~/.bashrc

0 commit comments

Comments
 (0)