-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1876 from swahtz/feature/fvdb
fVDB code format updates
- Loading branch information
Showing
193 changed files
with
32,114 additions
and
25,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,17 @@ | ||
ARG CUDA_VERSION=12.1.1 | ||
ARG CUDNN_VERSION=8 | ||
FROM nvcr.io/nvidia/pytorch:24.04-py3 | ||
|
||
FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu20.04 | ||
|
||
ENV PATH /usr/local/cuda/bin:$PATH | ||
ENV LD_LIBRARY_PATH /usr/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib:${LD_LIBRARY_PATH} | ||
|
||
# # nvidia-container-runtime | ||
ENV NVIDIA_VISIBLE_DEVICES all | ||
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,graphics | ||
|
||
RUN echo "Acquire { https::Verify-Peer false }" > /etc/apt/apt.conf.d/99verify-peer.conf \ | ||
&& if [ -f /etc/apt/sources.list.d/cuda.list ]; then \ | ||
rm /etc/apt/sources.list.d/cuda.list; \ | ||
fi \ | ||
&& if [ -f /etc/apt/sources.list.d/nvidia-ml.list ]; then \ | ||
rm /etc/apt/sources.list.d/nvidia-ml.list; \ | ||
fi \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated ca-certificates \ | ||
&& rm /etc/apt/apt.conf.d/99verify-peer.conf \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
wget \ | ||
rsync \ | ||
vim \ | ||
git \ | ||
curl \ | ||
ninja-build \ | ||
cmake \ | ||
build-essential \ | ||
xauth \ | ||
openssh-server \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh | ||
|
||
ENV PATH /opt/conda/bin:$PATH | ||
ENV TORCH_CUDA_ARCH_LIST "6.1;7.0;7.5;8.0;8.6+PTX" | ||
ARG MODE=production | ||
RUN echo "Building fVDB container in $MODE mode" | ||
|
||
# used for cross-compilation in docker build | ||
ENV FORCE_CUDA=1 | ||
|
||
WORKDIR /fvdb | ||
COPY env/test_environment.yml . | ||
|
||
RUN /opt/conda/bin/conda env create -f test_environment.yml \ | ||
&& /opt/conda/bin/conda clean -ya \ | ||
&& /opt/conda/bin/conda init bash | ||
COPY . . | ||
RUN pip install --no-cache-dir -r env/build_requirements.txt | ||
|
||
RUN if [ "$MODE" = "production" ]; then \ | ||
MAX_JOBS=$(free -g | awk '/^Mem:/{jobs=int($4/2.5); if(jobs<1) jobs=1; print jobs}') \ | ||
TORCH_CUDA_ARCH_LIST="6.1;7.0;7.5;8.0;8.6+PTX" \ | ||
python setup.py install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.