| # Copyright 2024 The IREE Authors | |
| # | |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. | |
| # See https://llvm.org/LICENSE.txt for license information. | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| name: PkgCI Test AMD W7900 | |
| on: | |
| workflow_call: | |
| inputs: | |
| artifact_run_id: | |
| type: string | |
| default: "" | |
| workflow_dispatch: | |
| inputs: | |
| artifact_run_id: | |
| type: string | |
| default: "" | |
| jobs: | |
| test_w7900: | |
| runs-on: [Linux, X64, iree-w7900] | |
| env: | |
| PACKAGE_DOWNLOAD_DIR: ${{ github.workspace }}/.packages | |
| BUILD_DIR: build-tests | |
| VENV_DIR: ${{ github.workspace }}/.venv | |
| GH_TOKEN: ${{ github.token }} | |
| IREE_CPU_DISABLE: 1 | |
| IREE_VULKAN_DISABLE: 0 | |
| IREE_CUDA_ENABLE: 0 | |
| IREE_HIP_ENABLE: 1 | |
| IREE_ROCM_TEST_TARGET_CHIP: "gfx1100" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: false | |
| - name: Check out runtime submodules | |
| run: ./build_tools/scripts/git/update_runtime_submodules.sh | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| # Must match the subset of versions built in pkgci_build_packages. | |
| python-version: "3.11" | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| if: ${{ inputs.artifact_run_id == '' }} | |
| with: | |
| name: linux_x86_64_release_packages | |
| path: ${{ env.PACKAGE_DOWNLOAD_DIR }} | |
| - name: Setup base venv | |
| run: | | |
| ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \ | |
| --artifact-path=${PACKAGE_DOWNLOAD_DIR} \ | |
| --fetch-gh-workflow=${{ inputs.artifact_run_id }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build tests | |
| run: ./build_tools/pkgci/build_tests_using_package.sh ${VENV_DIR}/bin | |
| - name: Run GPU tests | |
| env: | |
| CTEST_PARALLEL_LEVEL: 1 | |
| # TODO: https://github.com/iree-org/iree/issues/23242 | |
| # These tests are failing on the w7900 runner and are disabled | |
| # until the issue is investigated further. | |
| IREE_EXTRA_NEWLINE_SEPARATED_CTEST_TESTS_TO_EXCLUDE: |- | |
| iree/hal/drivers/hip/cts/hip_stream_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_stream_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_stream_command_buffer_fill_buffer_test | |
| iree/hal/drivers/hip/cts/hip_graph_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_graph_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_graph_command_buffer_fill_buffer_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_command_buffer_fill_buffer_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_command_buffer_fill_buffer_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_queue_1_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_queue_1_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_stream_queue_1_command_buffer_fill_buffer_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_queue_1_buffer_mapping_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_queue_1_command_buffer_dispatch_constants_test | |
| iree/hal/drivers/hip/cts/hip_multi_queue_graph_queue_1_command_buffer_fill_buffer_test | |
| IREE_CTEST_LABEL_REGEX: ^requires-gpu|^driver=vulkan$|^driver=hip$ | |
| IREE_AMD_RDNA3_TESTS_DISABLE: 0 | |
| IREE_NVIDIA_GPU_TESTS_DISABLE: 0 | |
| IREE_NVIDIA_SM80_TESTS_DISABLE: 1 | |
| IREE_MULTI_DEVICE_TESTS_DISABLE: 0 | |
| # Enable hip logging on errors. | |
| AMD_LOG_LEVEL: 1 | |
| run: ./build_tools/cmake/ctest_all.sh ${BUILD_DIR} |