Skip to content

Commit f188d5e

Browse files
committed
add ad-hoc libs
1 parent f204219 commit f188d5e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@ FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
22

33
RUN --mount=type=cache,target=/home/vscode/.cache/pip \
44
set -eux; \
5+
apt-get update; \
6+
apt-get install -y moreutils; \
57
pip wheel --no-deps torch; \
68
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

Comments
 (0)