Skip to content
GitHub

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:

ParameterValuesDescription
pushbranches with a list of branch names, or
tags with a list of tags
Specifies workflow triggers upon pushes to specific branches or tags. Syntax is identical to GitHub Actions’ push events.
pull_requesttypes (e.g., opened, synchronize, ready_for_review)Specifies workflow triggers for pull request events. Available event types match GitHub Actions pull request triggers.
schedulecronSpecifies 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:

ParameterTypeDescription
partitions
(if omitted, requires accelerator)
List of stringsSpecifies which cluster partitions your benchmarks should run on. See the Partitions Reference for available options.
accelerator
(if omitted, requires partitions)
StringSpecifies which cluster accelerator your benchmark wants to use. See the Accelerators Reference for available options.
timeout
(optional)
IntegerMaximum allowed execution time in minutes before the benchmark job is automatically terminated. The default value is 20 minutes.
container
(optional)
StringSpecifies 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)
StringSpecifies which preinstalled DOCC to use. Set it to ~ to not preinstall docc. By default the newest version is selected.
docc_telemetry
(default: false)
BooleanEnables DOCC telemetry (sets DOCC_RPC_SESSIONS=1 in the job container).
dist_platform
(optional)
ObjectThis 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:
  • architecture (String): E.g., amd64 or arm64
  • os (String): E.g., ubuntu or debian
  • nodeVersion (String): Node version string
  • kernelString (String)
  • os_release (Object):
    • name (String)
    • id (String): E.g., ubuntu or debian
    • id_like (String)
    • platform_id (String)
    • version_id (String): E.g., 24.04 (Ubuntu) or 13 (Debian)
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.out

The run Subsection

Defines individual benchmarks, including commands and measurement configurations: Each benchmark entry supports the following parameters:

ParameterTypeDescription
measurements
(optional)
IntegerNumber 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)
IntegerAbsolute runtime threshold in seconds. Jobs exceeding this threshold are marked as failed.
energy
(default: false)
BooleanMeasure (approximate) energy consumption in Joules.
mode"automatic" (default), "control", "manual"
  • "automatic" measures the runtime of the whole executed command
  • "control" expects the executed command to start and stop the runtime measurement itself by using the Daisy RTL (or its Python bindings)
  • "manual" expects the executed command to measure the runtime itself and write to a specific file
metrics
(optional)
StringProfiling metrics to measure in seperate profiling executions.
commandStringCommand to execute the benchmark.
cwd
(optional)
StringPath to the directory where the run step is supposed to be executed.
env
(optional)
Map of stringsEnvironment variables and their values. These variables are set for the run step.
benchmark
(optional)
StringStable logical benchmark id shared by all variants to calculate speedups and comparisons.
variant
(optional)
StringVariant key within a benchmark. The full name is ${benchmark}::${variant}
tags
(optional)
Map of stringsTags describing this variant:
  • framework (String): Keyword to bundle same frameworks together
  • device (String): Keyword to bundle by devices (e.g., cpu, gpu)
  • model (String): More fine-grained device keyword (e.g., openmp for device cpu, cuda for device gpu)
  • precision (String): Keyword to bundle by precision (e.g., float, double)
  • baseline (Boolean): Marks the variant as a baseline for speedup per device, model, and precision
  • profiling (Boolean): Marks the variant as a profiling run
  • arg-capture (Boolean): Enables argument capturing
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"]