| # Copyright 2022 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 |
| |
| steps: |
| - label: ":hammer_and_wrench: Build linux-x86_64 benchmark tools" |
| key: "build-x86_64-benchmark-tools" |
| commands: | |
| docker run --user=$(id -u):$(id -g) \ |
| --volume="$${HOME?}:$${HOME?}" \ |
| --volume="/etc/passwd:/etc/passwd:ro" \ |
| --volume="/etc/group:/etc/group:ro" \ |
| --volume="$$PWD:$$IREE_DOCKER_WORKDIR" \ |
| --workdir="$$IREE_DOCKER_WORKDIR" \ |
| --rm \ |
| $${DOCKER_IMAGE} \ |
| build_tools/cmake/build_linux_benchmark_tools.sh linux-x86_64 |
| tar -czvf iree-linux-x86_64-tools-${BUILDKITE_BUILD_NUMBER}.tgz \ |
| build-targets/linux-x86_64/tools/iree-benchmark-module \ |
| build-targets/linux-x86_64/tools/build_config.txt |
| agents: |
| - "queue=build" |
| artifact_paths: |
| - "iree-linux-x86_64-tools-${BUILDKITE_BUILD_NUMBER}.tgz" |
| |
| - label: ":stopwatch: Benchmark on Intel Cascade Lake CPU (GCP-c2-standard-16)" |
| key: "run-x86_64-benchmark-gcp-cpu" |
| depends_on: "build-x86_64-benchmark-tools" |
| commands: | |
| git clean -fdx |
| buildkite-agent artifact download \ |
| "benchmark-suites-linux-x86_64-$${BUILDKITE_BUILD_NUMBER}.tgz" ./ |
| buildkite-agent artifact download \ |
| "iree-linux-x86_64-tools-$${BUILDKITE_BUILD_NUMBER}.tgz" ./ |
| tar -xzvf "benchmark-suites-linux-x86_64-$${BUILDKITE_BUILD_NUMBER}.tgz" |
| tar -xzvf "iree-linux-x86_64-tools-$${BUILDKITE_BUILD_NUMBER}.tgz" |
| python3 build_tools/benchmarks/run_benchmarks_on_linux.py \ |
| --device_model=GCP-c2-standard-16 \ |
| --cpu_uarch=CascadeLake \ |
| --normal_benchmark_tool_dir=build-targets/linux-x86_64/tools/ \ |
| -o "benchmark-results-gcp-cpu-$${BUILDKITE_BUILD_NUMBER}.json" \ |
| --verbose \ |
| build-targets/linux-x86_64 |
| agents: |
| - "gcp:machine-type=c2-standard-16" |
| - "queue=benchmark-x86_64" |
| artifact_paths: |
| - "benchmark-results-gcp-cpu-${BUILDKITE_BUILD_NUMBER}.json" |
| timeout_in_minutes: "10" |