-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (33 loc) · 1.41 KB
/
Copy pathDockerfile
File metadata and controls
38 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Example: CUDA 11.7 development with Ubuntu 22.04
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
# Set the working directory inside the container
WORKDIR /workspace
# Install necessary dependencies
RUN apt-get update && apt-get install -y \
build-essential git wget curl libcrypt-dev vim
# Setup miniconda
RUN mkdir -p ~/miniconda3
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
RUN bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
RUN ~/miniconda3/condabin/conda init
# Copy this folder into the container
COPY . .
SHELL ["/bin/bash", "-i", "-c"]
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
RUN make clean_install
RUN make create_env
RUN conda activate ibp && make install_deps
RUN conda deactivate
RUN conda activate ibp
ENV TORCH_CUDA_ARCH_LIST="8.0"
ENV DGL_HOME=/workspace/workloads/DGL-IBP
ENV LD_LIBRARY_PATH=/workspace/ndzip/build/:$LD_LIBRARY_PATH
RUN conda activate ibp && make install NVCC=$(which nvcc) GCC=$(which gcc) GPP=$(which g++)
RUN make create_infinigen
RUN conda activate infinigen && make install_infinigen
RUN conda activate infinigen && make install_nvcomp
RUN conda activate infinigen && make install_ibp
ENV DGLBACKEND="pytorch"
RUN conda activate ibp && make download_gnn
RUN echo "conda activate ibp" >> ~/.bashrc