Workflow
This page describes the available parameters for defining workflows.
The name parameter
Specify the name of the workflow with a string.
Example:
name: "My cool workflow"The on Section
This section specifies conditions that trigger the workflow. The syntax closely follows GitHub Actions workflows:
| Parameter | Values | Description |
|---|---|---|
| push | branches with a list of branch names, ortags with a list of tags | Specifies workflow triggers upon pushes to specific branches or tags. Syntax is identical to GitHub Actions’ push events. |
| pull_request | types (e.g., opened, synchronize, ready_for_review) | Specifies workflow triggers for pull request events. Available event types match GitHub Actions pull request triggers. |
| schedule | cron | Specifies whether workflows should run regularly at a scheduled time GitHub Actions schedule. |
Example:
on: push: branches: - main - develop pull_request: types: [opened, reopened, synchronize]The parameters Section
The parameters section defines job-specific execution settings:
| Parameter | Type | Description |
|---|---|---|
| partitions (if omitted, requires accelerator) | List of strings | Specifies which cluster partitions your benchmarks should run on. See the Partitions Reference for available options. |
| accelerator (if omitted, requires partitions) | String | Specifies which cluster accelerator your benchmark wants to use. See the Accelerators Reference for available options. |
| timeout (optional) | Integer | Maximum allowed execution time in minutes before the benchmark job is automatically terminated. The default value is 20 minutes. |
| container (optional) | String | Specifies which docker container to use as a basis for the workflow. If nothing is specified, it will run the default container of the partition or accelerator. See Docker Images Reference for more details. |
| docc_version (optional) | String | Specifies which preinstalled DOCC to use. Set it to ~ to not preinstall docc. By default the newest version is selected. |
| docc_telemetry (default: false) | Boolean | Enables DOCC telemetry (sets DOCC_RPC_SESSIONS=1 in the job container). |
| dist_platform (optional) | Object | This can be used to specify the platform of the container so that the correct DOCC / autotuner can be selected. The default is ubuntu, 24.04. All values are optional:
|
parameters: partitions: - bellis5 timeout: 40 docc_version: "0.8.4" dist_platform: os_release: id: ubuntu version_id: "24.04"The steps Section
This section contains two subsections: build and run.
The build Subsection
Contains commands to set up the environment and compile your benchmarks. The subsection expects a multiline string with shell commands executed sequentially.
steps: build: | sudo apt-get update sudo apt-get install -y libblas-dev clang -O2 tests/my_cool_benchmark.c -o tests/my_cool_benchmark.clang.out docc -docc-tune=openmp -O2 tests/my_cool_benchmark.c -o tests/my_cool_benchmark.openmp.out docc -docc-tune=cuda -O2 tests/my_cool_benchmark.c -o tests/my_cool_benchmark.cuda.outThe run Subsection
Defines individual benchmarks, including commands and measurement configurations: Each benchmark entry supports the following parameters:
| Parameter | Type | Description |
|---|---|---|
| measurements (optional) | Integer | Number of repeated runs to ensure statistical reliability. By default, measurements are executed until a certain level of confidence is achieved w.r.t the mean runtime. |
| threshold (optional) | Integer | Absolute runtime threshold in seconds. Jobs exceeding this threshold are marked as failed. |
| energy (default: false) | Boolean | Measure (approximate) energy consumption in Joules. |
| mode | "automatic" (default), "control", "manual" |
|
| metrics (optional) | String | Profiling metrics to measure in seperate profiling executions. |
| command | String | Command to execute the benchmark. |
| cwd (optional) | String | Path to the directory where the run step is supposed to be executed. |
| env (optional) | Map of strings | Environment variables and their values. These variables are set for the run step. |
| benchmark (optional) | String | Stable logical benchmark id shared by all variants to calculate speedups and comparisons. |
| variant (optional) | String | Variant key within a benchmark. The full name is ${benchmark}::${variant} |
| tags (optional) | Map of strings | Tags describing this variant:
|
| artifacts (optional) | List of strings |
steps: run: my_cool_benchmark: measurements: 5 threshold: 0.05 energy: true cwd: tests env: MY_VAR: HELLO_WORLD LD_LIBRARY_PATH: my/lib/path:$LD_LIBRARY_PATH variants: clang: command: ./my_cool_benchmark.clang.out --size 1000 tags: { framework: clang, device: cpu, model: openmp, precision: double, baseline: true } docc-openmp: command: ./my_cool_benchmark.openmp.out --size 1000 tags: { framework: docc, device: cpu, model: openmp, precision: double } docc-openmp-prof: command: ./my_cool_benchmark.openmp.out --size 1000 tags: { framework: docc, device: cpu, model: openmp, precision: double, profiling: true } metrics: ["flop_fp64", "flop_fp32"] docc-openmp-capture: command: ./my_cool_benchmark.openmp.out --size 1000 tags: { framework: docc, device: cpu, model: openmp, precision: double, arg-capture: true } docc-cuda: command: ./my_cool_benchmark.cuda.out --size 1000 tags: { framework: docc, device: gpu, model: cuda, precision: double } docc-cuda-prof: command: ./my_cool_benchmark.cuda.out --size 1000 tags: { framework: docc, device: gpu, model: cuda, precision: double, profiling: true } metrics: ["cuda:::flop_fp64", "cuda:::flop_fp32", "cuda:::flop_fp16", "cuda:::flop_tensor_fp16"]