blob: d73617e95727d07775b29f893f14df33caca07ea [file] [log] [blame]
Scott Todd2bef7202024-07-30 08:14:38 -07001# Copyright 2024 The IREE Authors
2#
3# Licensed under the Apache License v2.0 with LLVM Exceptions.
4# See https://llvm.org/LICENSE.txt for license information.
5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7name: PkgCI Test AMD W7900
8on:
9 workflow_call:
10 inputs:
11 artifact_run_id:
12 type: string
13 default: ""
14 workflow_dispatch:
15 inputs:
16 artifact_run_id:
17 type: string
18 default: ""
19
20jobs:
Scott Todd854a13e2024-09-04 09:08:42 -070021 test_w7900:
Scott Todd2bef7202024-07-30 08:14:38 -070022 runs-on: nodai-amdgpu-w7900-x86-64
23 env:
24 PACKAGE_DOWNLOAD_DIR: ${{ github.workspace }}/.packages
25 BUILD_DIR: build-tests
26 VENV_DIR: ${{ github.workspace }}/.venv
27 IREE_CPU_DISABLE: 1
28 IREE_VULKAN_DISABLE: 0
maxbartelf2bf6022024-09-04 17:53:38 +020029 IREE_CUDA_ENABLE: 0
30 IREE_HIP_ENABLE: 1
Scott Todd2bef7202024-07-30 08:14:38 -070031 IREE_HIP_TEST_TARGET_CHIP: "gfx1100"
32 steps:
Scott Todd09dc0032024-08-05 11:04:09 -070033 - name: Check out repository
Marius Brehlerb78def22024-09-06 18:53:11 +020034 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Scott Todd2bef7202024-07-30 08:14:38 -070035 with:
36 submodules: false
Scott Todd09dc0032024-08-05 11:04:09 -070037 - name: Check out runtime submodules
Scott Todd2bef7202024-07-30 08:14:38 -070038 run: ./build_tools/scripts/git/update_runtime_submodules.sh
Marius Brehlerb78def22024-09-06 18:53:11 +020039 - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.1.0
Scott Todd2bef7202024-07-30 08:14:38 -070040 with:
41 # Must match the subset of versions built in pkgci_build_packages.
42 python-version: "3.11"
Marius Brehlerb78def22024-09-06 18:53:11 +020043 - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
Scott Todd2bef7202024-07-30 08:14:38 -070044 with:
45 name: linux_x86_64_release_packages
46 path: ${{ env.PACKAGE_DOWNLOAD_DIR }}
47 - name: Setup base venv
48 run: |
49 ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \
50 --artifact-path=${PACKAGE_DOWNLOAD_DIR} \
51 --fetch-gh-workflow=${{ inputs.artifact_run_id }}
Scott Todd09dc0032024-08-05 11:04:09 -070052
53 - name: Build tests
Scott Todd2bef7202024-07-30 08:14:38 -070054 run: ./build_tools/pkgci/build_tests_using_package.sh ${VENV_DIR}/bin
Scott Todd09dc0032024-08-05 11:04:09 -070055 - name: Run GPU tests
Scott Todd2bef7202024-07-30 08:14:38 -070056 env:
57 CTEST_PARALLEL_LEVEL: 1
58 IREE_CTEST_LABEL_REGEX: ^requires-gpu|^driver=vulkan$|^driver=hip$
59 IREE_AMD_RDNA3_TESTS_DISABLE: 0
60 IREE_NVIDIA_GPU_TESTS_DISABLE: 0
61 IREE_NVIDIA_SM80_TESTS_DISABLE: 1
62 IREE_MULTI_DEVICE_TESTS_DISABLE: 0
63 run: ./build_tools/cmake/ctest_all.sh ${BUILD_DIR}