Skip to content

Commit a5240f6

Browse files
committed
Temporary adding checkout branch
checkout branch
1 parent 27f7792 commit a5240f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/_build_torch_xla_3.11.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: "Build Torch/XLA wheel"
2828
shell: bash
2929
id: build_wheels
30+
timeout-minutes: 540 # 9 hours
3031
run: |
3132
cmake --version
3233
apt-get update && apt-get install -y curl git build-essential
@@ -50,9 +51,12 @@ jobs:
5051
cd pytorch/
5152
git clone --recursive https://github.com/tenstorrent/pytorch-xla.git xla
5253
54+
5355
(
5456
# Build PyTorch
5557
# 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"
5660
export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
5761
export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict"
5862
# copy pre-built wheels from cache
@@ -62,6 +66,7 @@ jobs:
6266
6367
# Build PyTorch/XLA
6468
cd xla/
69+
git checkout sshon/rebase-to-upstream
6570
python3.11 setup.py bdist_wheel
6671
6772
# Collect wheels

0 commit comments

Comments
 (0)