Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 1 | # 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 | |
| 7 | name: PkgCI Test AMD W7900 |
| 8 | on: |
| 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 | |
| 20 | jobs: |
Scott Todd | 854a13e | 2024-09-04 09:08:42 -0700 | [diff] [blame] | 21 | test_w7900: |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 22 | 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 |
maxbartel | f2bf602 | 2024-09-04 17:53:38 +0200 | [diff] [blame] | 29 | IREE_CUDA_ENABLE: 0 |
| 30 | IREE_HIP_ENABLE: 1 |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 31 | IREE_HIP_TEST_TARGET_CHIP: "gfx1100" |
| 32 | steps: |
Scott Todd | 09dc003 | 2024-08-05 11:04:09 -0700 | [diff] [blame] | 33 | - name: Check out repository |
Marius Brehler | b78def2 | 2024-09-06 18:53:11 +0200 | [diff] [blame] | 34 | uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 35 | with: |
| 36 | submodules: false |
Scott Todd | 09dc003 | 2024-08-05 11:04:09 -0700 | [diff] [blame] | 37 | - name: Check out runtime submodules |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 38 | run: ./build_tools/scripts/git/update_runtime_submodules.sh |
Marius Brehler | b78def2 | 2024-09-06 18:53:11 +0200 | [diff] [blame] | 39 | - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.1.0 |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 40 | with: |
| 41 | # Must match the subset of versions built in pkgci_build_packages. |
| 42 | python-version: "3.11" |
Marius Brehler | b78def2 | 2024-09-06 18:53:11 +0200 | [diff] [blame] | 43 | - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 44 | 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 Todd | 09dc003 | 2024-08-05 11:04:09 -0700 | [diff] [blame] | 52 | |
| 53 | - name: Build tests |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 54 | run: ./build_tools/pkgci/build_tests_using_package.sh ${VENV_DIR}/bin |
Scott Todd | 09dc003 | 2024-08-05 11:04:09 -0700 | [diff] [blame] | 55 | - name: Run GPU tests |
Scott Todd | 2bef720 | 2024-07-30 08:14:38 -0700 | [diff] [blame] | 56 | 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} |