Skip to content

TileAssignment: Fix build with gcc #8725

TileAssignment: Fix build with gcc

TileAssignment: Fix build with gcc #8725

Workflow file for this run

# Copyright 2026 The OpenXLA Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
name: CI ROCm
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.ref != 'main' }}
jobs:
execute-xla-ut:
runs-on: linux-x64-mi210-64-2gpu-amd
env:
DOCKER_IMAGE: rocm/tensorflow-build@sha256:7fcfbd36b7ac8f6b0805b37c4248e929e31cf5ee3af766c8409dd70d5ab65faa
CONTAINER_NAME: xla-runner
steps:
# Pre-clean up in case a previous run crashed
- name: Cleanup container
run: docker rm -f ${{ env.CONTAINER_NAME }} || true
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Checkout rocAutomation using local creds
run: |
rm -rf rocAutomation
git clone -b jenkins-pipelines https://github.com/ROCm/rocAutomation.git rocAutomation
- name: Start Container
run: |
docker run -dt \
--name ${{ env.CONTAINER_NAME }} \
--init \
--network=host \
--device=/dev/dri \
--device=/dev/kfd \
--group-add $(getent group render | cut -d: -f3) \
--group-add $(getent group video | cut -d: -f3) \
--ipc=host \
--shm-size=16G \
--cap-add=SYS_PTRACE \
--security-opt=seccomp=unconfined \
--tmpfs /root/.cache/bazel:rw,exec,size=80g \
-v ${{ github.workspace }}:/workspace \
-v ${{ github.workspace }}/rocAutomation/resources/certificates:/tf/certificates:ro \
-v ${{ github.workspace }}/rocAutomation/resources/upstream-xla-data/rocm_tag_filters.sh:/workspace/build_tools/rocm/rocm_tag_filters.sh:ro \
-v ${{ github.workspace }}/rocAutomation/resources/upstream-xla-data/execute_ci_build.sh:/workspace/build_tools/rocm/execute_ci_build.sh:ro \
-w /workspace \
${{ env.DOCKER_IMAGE }}
- name: CPU Info
run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "lscpu"
- name: ROCm info
run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "/opt/rocm/bin/rocminfo"
- name: Test XLA [single_gpu]
run: |
docker exec \
${{ env.CONTAINER_NAME }} \
bash -c "build_tools/rocm/execute_ci_build.sh --config=ci_single_gpu --local_test_jobs=2 --repo_env=TF_ROCM_RBE_SINGLE_GPU_POOL=linux_x64_gpu_gfx90a --repo_env=TF_ROCM_RBE_DOCKER_IMAGE=${{ env.DOCKER_IMAGE }}"
- name: Test XLA [multi_gpu]
if: always()
run: |
docker exec \
${{ env.CONTAINER_NAME }} \
bash -c "build_tools/rocm/execute_ci_build.sh --config=ci_multi_gpu --strategy=TestRunner=local --local_test_jobs=2 --repo_env=TF_ROCM_RBE_DOCKER_IMAGE=${{ env.DOCKER_IMAGE }}"
- name: Cleanup container
if: always()
run: |
docker stop --time=60 ${{ env.CONTAINER_NAME }} || true
docker rm -f ${{ env.CONTAINER_NAME }} || true