File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 25
25
artifact_name : ${{ steps.set_upload_name.outputs.artifact_name }}
26
26
steps :
27
27
- name : " Build Torch/XLA wheel"
28
+ shell : bash
28
29
id : build_wheels
29
30
run : |
30
31
cmake --version
49
50
cd pytorch/
50
51
git clone --recursive https://github.com/tenstorrent/pytorch-xla.git xla
51
52
52
- # copy pre-built wheels from cache
53
- python3.11 setup.py bdist_wheel
54
- python3.11 setup.py develop
53
+ (
54
+ # Build PyTorch
55
+ # From https://docs.pytorch.org/FBGEMM/fbgemm/development/BuildInstructions.html, section "Build Issues with GCC 12+"
56
+ export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
57
+ export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
58
+ # copy pre-built wheels from cache
59
+ python3.11 setup.py bdist_wheel
60
+ python3.11 setup.py develop
61
+ )
55
62
56
63
# Build PyTorch/XLA
57
64
cd xla/
You can’t perform that action at this time.
0 commit comments