Skip to content

Commit b449541

Browse files
committed
update
1 parent 43e56e8 commit b449541

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.devcontainer/Dockerfile

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

33
RUN --mount=type=cache,target=/home/vscode/.cache/pip \
44
set -eux; \
55
apt-get update; \
66
apt-get install -y moreutils; \
77
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; \
8+
pip install patchelf torch-*.whl; \
149
mkdir -p /usr/local/lib/nv; \
1510
ln -s /usr/local/lib/python3.12/site-packages/nvidia/*/lib/*.so* /usr/local/lib/nv/; \
1611
echo "/usr/local/lib/nv" > /etc/ld.so.conf.d/nv.conf; \

.devcontainer/demo.sh

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
#! /bin/bash
2+
13
auditwheel -v repair \
24
--exclude libcuds.so.1 \
35
--exclude libcusolver.so.11 \
46
--exclude libcusparseLt.so.0 \
57
--plat=manylinux_2_35_x86_64 \
6-
/torch-2.6.0-cp312-cp312-manylinux1_x86_64.whl
8+
-w /tmp/wheelhouse \
9+
/torch-2.6.0-cp312-cp312-manylinux1_x86_64.whl \
10+
2>&1 | ts '[%Y-%m-%d %H:%M:%S]'

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"mounts": [
44
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/id_rsa,target=/home/vscode/.ssh/id_rsa,readonly",
55
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/known_hosts,target=/home/vscode/.ssh/known_hosts"
6-
]
6+
],
7+
"postStartCommand": "pip install -e /workspaces/auditwheel"
78
}

0 commit comments

Comments
 (0)