Skip to content

Commit b6d8067

Browse files
committed
Fix for libnvrtc.so error
1 parent 9e7d229 commit b6d8067

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Diff for: dockerfiles/2.0.0-cuda11.8-ubuntu22.04/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ RUN micromamba create -qy -n base -f /app/conda-linux-64.lock \
4343
&& micromamba shell init --shell=bash --prefix="$MAMBA_ROOT_PREFIX" \
4444
&& micromamba clean -qya
4545

46+
# Fix for https://github.com/pytorch/pytorch/issues/97041
47+
RUN ln -s "$CONDA_PREFIX/lib/libnvrtc.so.11.8.89" "$CONDA_PREFIX/lib/libnvrtc.so"
48+
4649
# Set the default command to python3.
4750
CMD ["python3"]

Diff for: images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
path: templates/20221212.dockerfile.jinja2
77
vars:
88
base_image: nvidia/cuda:11.8.0-base-ubuntu22.04
9+
post_conda_steps: |
10+
# Fix for https://github.com/pytorch/pytorch/issues/97041
11+
RUN ln -s "$CONDA_PREFIX/lib/libnvrtc.so.11.8.89" "$CONDA_PREFIX/lib/libnvrtc.so"
912
conda_channels:
1013
- conda-forge
1114
- nvidia

Diff for: templates/20221212.dockerfile.jinja2

+2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ RUN micromamba create -qy -n base -f /app/conda-linux-64.lock \
4343
&& micromamba shell init --shell=bash --prefix="$MAMBA_ROOT_PREFIX" \
4444
&& micromamba clean -qya
4545

46+
{{ post_conda_steps ~ (post_conda_steps and '\n') -}}
47+
4648
# Set the default command to python3.
4749
CMD ["python3"]

0 commit comments

Comments
 (0)