File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 50
50
cd pytorch/
51
51
git clone --recursive https://github.com/tenstorrent/pytorch-xla.git xla
52
52
53
+
53
54
(
54
55
# Build PyTorch
55
56
# From https://docs.pytorch.org/FBGEMM/fbgemm/development/BuildInstructions.html, section "Build Issues with GCC 12+"
57
+ export CFLAGS="${CFLAGS:+$CFLAGS }-w"
58
+ export CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }-w"
56
59
export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
57
60
export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
58
61
# copy pre-built wheels from cache
62
65
63
66
# Build PyTorch/XLA
64
67
cd xla/
68
+ git checkout sshon/rebase-to-upstream
65
69
python3.11 setup.py bdist_wheel
66
70
67
71
# Collect wheels
You can’t perform that action at this time.
0 commit comments