Skip to content

Commit 660b3eb

Browse files
committed
updated git urls to use ssh instead of http
1 parent ad3964b commit 660b3eb

File tree

2 files changed

+3
-42
lines changed

2 files changed

+3
-42
lines changed

Dockerfile

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM 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
64
ENV 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
3028
RUN 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
3331
WORKDIR /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
4234
RUN 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
9156
RUN 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
9859
ENV GPU_FLOPBENCH_ROOT=/gpu-flopbench
9960

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Additional note: we provide all the sampling and code-scraping data -- therefore
6262
### Container on NVIDIA GPU-Enabled Host
6363

6464
```
65-
git clone https://github.com/Scientific-Computing-Lab/gpuFLOPBench.git ./gpu-flopbench
65+
git clone git@github.com:Scientific-Computing-Lab/gpuFLOPBench.git ./gpu-flopbench
6666
6767
# we only really need the Dockerfile from the repo
6868
cd ./gpu-flopbench
@@ -79,7 +79,7 @@ docker exec -it gpu-flopbench-container /bin/bash
7979

8080
### Container on Macbook (Apple Silicon M1/2/3/4) -- no NVIDIA GPU
8181
```
82-
git clone https://github.com/Scientific-Computing-Lab/gpuFLOPBench.git ./gpu-flopbench
82+
git clone git@github.com:Scientific-Computing-Lab/gpuFLOPBench.git ./gpu-flopbench
8383
8484
# we only really need the Dockerfile from the repo
8585
cd ./gpu-flopbench

0 commit comments

Comments
 (0)