This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build-ttmlir-opmodelinterface: | |
needs: build-image | |
timeout-minutes: 120 | |
strategy: | |
fail-fast: false | |
matrix: | |
build: [ | |
{runs-on: n300, enable_perf: OFF, enable_op_model: ON, enable_emitc: OFF, enable_async: OFF, enable_runtime_debug: OFF, name: "op_model", build_name: "op_model", ttrt_flags: ""} | |
] | |
name: Run build and test tt-mlir (TT machine) | |
runs-on: ${{ matrix.build.runs-on }} | |
container: | |
image: ${{ needs.build-image.outputs.docker-image }} | |
options: --device /dev/tenstorrent/0 | |
volumes: | |
- /dev/hugepages:/dev/hugepages | |
- /dev/hugepages-1G:/dev/hugepages-1G | |
- /etc/udev/rules.d:/etc/udev/rules.d | |
- /lib/modules:/lib/modules | |
- /opt/tt_metal_infra/provisioning/provisioning_env:/opt/tt_metal_infra/provisioning/provisioning_env | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch job id | |
id: fetch-job-id | |
uses: tenstorrent/tt-github-actions/.github/actions/job_id@main | |
with: | |
job_name: "Run build and test tt-mlir (TT machine) (${{ matrix.build.runs-on }}, ${{ matrix.build.enable_perf }}, ${{ matrix.build.enable_op_model }}, ${{ matrix.build.enable_emitc }}, ${{ matrix.build.enable_async }}, ${{ matrix.build.enable_runtime_debug }}, ${{ matrix.build.name }}, ${{ matrix.build.build_name }})" | |
- name: Set reusable strings | |
id: strings | |
shell: bash | |
env: | |
JOB_ID: ${{ steps.fetch-job-id.outputs.job_id }} | |
run: | | |
echo "work-dir=$(pwd)" >> "$GITHUB_OUTPUT" | |
echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT" | |
echo "install-output-dir=$(pwd)/install" >> "$GITHUB_OUTPUT" | |
echo "test_report_path=report_$JOB_ID.xml" >> "$GITHUB_OUTPUT" | |
- name: Git safe dir | |
run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }} | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
create-symlink: true | |
key: ${{ matrix.build.runs-on }}-run-ON-perf-${{ matrix.build.enable_perf }}-op_model-${{ matrix.build.enable_op_model }}-${{ matrix.build.enable_emitc }}-async-${{ matrix.build.enable_async }}-runtime_debug-${{ matrix.build.enable_runtime_debug}}-${{ env.SDK_VERSION }} | |
# Build project | |
- name: Run build and test tt-mlir | |
uses: ./.github/actions/build-tt-mlir-action | |
with: | |
enable-perf: ${{ matrix.build.enable_perf }} | |
enable-op-model: ${{ matrix.build.enable_op_model }} | |
enable-emitc: ${{ matrix.build.enable_emitc }} | |
enable-async: ${{ matrix.build.enable_async }} | |
enable-runtime-debug: ${{ matrix.build.enable_runtime_debug }} | |
build-name: ${{ matrix.build.build_name }} | |
build-output-dir: ${{ steps.strings.outputs.build-output-dir }} | |
install-output-dir: ${{ steps.strings.outputs.install-output-dir }} | |
work-dir: ${{ steps.strings.outputs.work-dir }} | |
test_report_path: ${{ steps.strings.outputs.test_report_path }} |