File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
2
2
3
3
RUN --mount=type=cache,target=/home/vscode/.cache/pip \
4
4
set -eux; \
5
5
apt-get update; \
6
6
apt-get install -y moreutils; \
7
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; \
8
+ pip install patchelf torch-*.whl; \
14
9
mkdir -p /usr/local/lib/nv; \
15
10
ln -s /usr/local/lib/python3.12/site-packages/nvidia/*/lib/*.so* /usr/local/lib/nv/; \
16
11
echo "/usr/local/lib/nv" > /etc/ld.so.conf.d/nv.conf; \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ pip install -e /workspaces/auditwheel
4
+
1
5
auditwheel -v repair \
2
6
--exclude libcuds.so.1 \
3
7
--exclude libcusolver.so.11 \
4
8
--exclude libcusparseLt.so.0 \
5
9
--plat=manylinux_2_35_x86_64 \
6
- /torch-2.6.0-cp312-cp312-manylinux1_x86_64.whl
10
+ /torch-2.6.0-cp312-cp312-manylinux1_x86_64.whl \
11
+ 2>&1 | ts ' [%Y-%m-%d %H:%M:%S]'
You can’t perform that action at this time.
0 commit comments