Skip to content

Commit 0883971

Browse files
authored
CI: Update XLA from 1.9 to 1.12 (#14013)
1 parent 3d5c3d2 commit 0883971

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
docker:
114114
- image: circleci/python:3.7
115115
environment:
116-
- XLA_VER: 1.9
116+
- XLA_VER: 1.12
117117
- PYTHON_VER: 3.7
118118
- MAX_CHECKS: 1000
119119
- CHECK_SPEEP: 5

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| pytorch-lightning (HPUs) | .azure-pipelines/hpu-tests.yml | Run only HPU-specific tests. | HPU | (3.8, 1.10) | linux |
1414
| pytorch-lightning (GPUs) | .azure-pipelines/gpu-tests.yml | Run all CPU and GPU-specific tests, standalone, and examples. Each standalone test needs to be run in separate processes to avoid unwanted interactions between test cases. | GPU | (3.9, 1.12) | linux |
1515
| PyTorchLightning.Benchmark | .azure-pipelines/gpu-benchmark.yml | Run speed/memory benchmarks for parity with pure PyTorch. | GPU | (3.9, 1.12) | linux |
16-
| test-on-tpus | .circleci/config.yml | Run only TPU-specific tests. | TPU | (3.7, 1.9) | linux |
16+
| test-on-tpus | .circleci/config.yml | Run only TPU-specific tests. | TPU | (3.7, 1.12) | linux |
1717

1818
- \*Accelerators used in CI
1919
- GPU: 2 x NVIDIA Tesla V100

.github/workflows/cicd-pytorch_dockers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
matrix:
5252
# the config used in '.circleci/config.yml`'
5353
python_version: ["3.7"]
54-
xla_version: ["1.11"]
54+
xla_version: ["1.12"]
5555
steps:
5656
- uses: actions/checkout@v2
5757
- uses: docker/setup-buildx-action@v2

dockers/base-xla/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LABEL maintainer="Lightning-AI <https://github.com/Lightning-AI>"
1919
# CALL: docker image build -t pytorch-lightning:XLA-image -f dockers/base-xla/Dockerfile . --build-arg PYTHON_VERSION=3.8
2020
ARG PYTHON_VERSION=3.9
2121
ARG CONDA_VERSION=4.9.2
22-
ARG XLA_VERSION=1.11
22+
ARG XLA_VERSION=1.12
2323

2424
SHELL ["/bin/bash", "-c"]
2525
# for skipping configurations
@@ -92,6 +92,10 @@ RUN \
9292
python --version && \
9393
cd pytorch-lightning && \
9494
pip install -q fire && \
95+
# Pin mkl version to avoid OSError on torch import
96+
# OSError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory
97+
# https://github.com/pytorch/xla/issues/1666
98+
pip install mkl==2021.4.0 && \
9599
# drop packages installed with XLA
96100
python .actions/assistant.py requirements_prune_pkgs torch,torchvision && \
97101
# drop unnecessary packages

0 commit comments

Comments
 (0)