File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 27
27
- name : " Build Torch/XLA wheel"
28
28
shell : bash
29
29
id : build_wheels
30
+ timeout-minutes : 540 # 9 hours
30
31
run : |
31
32
cmake --version
32
33
apt-get update && apt-get install -y curl git build-essential
50
51
cd pytorch/
51
52
git clone --recursive https://github.com/tenstorrent/pytorch-xla.git xla
52
53
54
+
53
55
(
54
56
# Build PyTorch
55
57
# From https://docs.pytorch.org/FBGEMM/fbgemm/development/BuildInstructions.html, section "Build Issues with GCC 12+"
58
+ export CFLAGS="${CFLAGS:+$CFLAGS }-w"
59
+ export CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }-w"
56
60
export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
57
61
export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
58
62
# copy pre-built wheels from cache
62
66
63
67
# Build PyTorch/XLA
64
68
cd xla/
69
+ git checkout sshon/rebase-to-upstream
65
70
python3.11 setup.py bdist_wheel
66
71
67
72
# Collect wheels
You can’t perform that action at this time.
0 commit comments