We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f204219 commit f188d5eCopy full SHA for f188d5e
.devcontainer/Dockerfile
@@ -2,5 +2,16 @@ FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
2
3
RUN --mount=type=cache,target=/home/vscode/.cache/pip \
4
set -eux; \
5
+ apt-get update; \
6
+ apt-get install -y moreutils; \
7
pip wheel --no-deps torch; \
8
pip install patchelf torch-*.whl
9
+
10
+# link all /usr/local/lib/python3.12/site-packages/nvidia/*/lib
11
+# to /etc/ld.so.conf.d/nv.conf
12
+# and run ldconfig
13
+RUN set -eux; \
14
+ mkdir -p /usr/local/lib/nv; \
15
+ ln -s /usr/local/lib/python3.12/site-packages/nvidia/*/lib/*.so* /usr/local/lib/nv/; \
16
+ echo "/usr/local/lib/nv" > /etc/ld.so.conf.d/nv.conf; \
17
+ ldconfig -p
0 commit comments