Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/_build_torch_xla_3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
artifact_name: ${{ steps.set_upload_name.outputs.artifact_name }}
steps:
- name: "Build Torch/XLA wheel"
shell: bash
id: build_wheels
run: |
cmake --version
Expand All @@ -49,9 +50,16 @@ jobs:
cd pytorch/
git clone --recursive https://github.com/tenstorrent/pytorch-xla.git xla
# copy pre-built wheels from cache
python3.11 setup.py bdist_wheel
python3.11 setup.py develop
(
# Build PyTorch
# From https://docs.pytorch.org/FBGEMM/fbgemm/development/BuildInstructions.html, section "Build Issues with GCC 12+"
export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
# copy pre-built wheels from cache
python3.11 setup.py bdist_wheel
python3.11 setup.py develop
)
# Build PyTorch/XLA
cd xla/
Expand Down
Loading