Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN apt remove cmake -y && \
RUN pip install mpi4py

# install onnx
RUN pip install onnxruntime onnxruntime-gpu
RUN pip install onnxruntime && \
if [ "$(uname -m)" = "x86_64" ]; then pip install onnxruntime-gpu; fi

# hdf5 and h5py
ENV HDF5_VERSION=2.0.0
Expand Down Expand Up @@ -74,8 +75,8 @@ RUN pip install git+https://github.com/NVIDIA/physicsnemo.git@v1.3.0

# torch-harmonics
RUN pip install setuptools_scm
ENV FORCE_CUDA_EXTENSION 1
ENV TORCH_CUDA_ARCH_LIST "8.0 8.6 8.7 9.0 10.0+PTX"
ENV FORCE_CUDA_EXTENSION=1
ENV TORCH_CUDA_ARCH_LIST="8.0 8.6 8.7 9.0a 10.0a+PTX"
RUN cd /opt && git clone https://github.com/NVIDIA/torch-harmonics.git && \
cd torch-harmonics && \
pip install --no-build-isolation -e .
Expand All @@ -90,4 +91,4 @@ COPY makani /opt/makani/makani
COPY tests /opt/makani/tests
COPY pyproject.toml /opt/makani/pyproject.toml
COPY README.md /opt/makani/README.md
RUN cd /opt/makani && pip install --no-deps -e .
RUN cd /opt/makani && pip install --no-deps -e .
12 changes: 6 additions & 6 deletions docker/Dockerfile.aws
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RUN apt remove cmake -y && \
RUN pip install mpi4py

# install onnx
RUN pip install onnxruntime onnxruntime-gpu
RUN pip install onnxruntime && \
if [ "$(uname -m)" = "x86_64" ]; then pip install onnxruntime-gpu; fi

# install AWS prereqs for HDF5
RUN cd /opt && git clone https://github.com/awslabs/aws-c-common.git && \
Expand Down Expand Up @@ -107,7 +108,7 @@ RUN cd /opt && git clone https://github.com/awslabs/aws-c-auth.git && \
make install

# 7. aws-c-s3 (final target for HDF5)
RUn cd /opt && git clone https://github.com/awslabs/aws-c-s3.git && \
RUN cd /opt && git clone https://github.com/awslabs/aws-c-s3.git && \
cd aws-c-s3 && \
mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
Expand Down Expand Up @@ -156,9 +157,8 @@ RUN pip install "git+https://github.com/google-research/weatherbench2.git"
RUN pip install --ignore-installed "git+https://github.com/NVIDIA/mlperf-common.git"

# torch-harmonics
ENV FORCE_CUDA_EXTENSION 1
ENV TORCH_CUDA_ARCH_LIST "8.0 8.6 8.7 9.0 10.0 12.0+PTX"
ENV HARMONICS_VERSION 0.8.5
ENV FORCE_CUDA_EXTENSION=1
ENV TORCH_CUDA_ARCH_LIST="8.0 8.6 8.7 9.0a 10.0a 12.0+PTX"
RUN cd /opt && git clone https://github.com/NVIDIA/torch-harmonics.git && \
cd torch-harmonics && \
pip install --no-build-isolation -e .
Expand All @@ -176,4 +176,4 @@ COPY makani /opt/makani/makani
COPY tests /opt/makani/tests
COPY pyproject.toml /opt/makani/pyproject.toml
COPY README.md /opt/makani/README.md
RUN cd /opt/makani && pip install -e .
RUN cd /opt/makani && pip install -e .
Loading