Target and schedule
Choose the measurements you need before choosing the hardware settings. A desktop study can still request compilation if the scoring policy references compiler-reported metrics.
| Goal | device.hil |
device.compile_when_hil_disabled |
|---|---|---|
| Pure desktop search with task metrics and FLOPs | false |
false |
| Fetch compiler-reported RAM or flash for selected metrics | false |
auto |
| Collect measured latency or board energy | true |
Applies only when HIL is disabled |
For measured runs, set device.name to the target backend and device.runtime_mode to back_to_back or cadenced. In cadenced mode CREST can derive the latency budget from dataset timing, or you can give a positive device.latency_budget_ms.
Device, harness and backend-specific fields
The device block owns target selection and runtime behavior.
Common keys
device.nameTarget device identifier.device.hilEnables or disables hardware-in-the-loop measurement.device.compile_when_hil_disabledControls whetherdevice.hil: falsestill calls the HIL server for compile-only proxy metrics. Valid values areauto,true, andfalse. YAML booleans are accepted and normalized totrue/false. The defaultautocompiles only when the active score/prune policy references compile-derived metrics such asram_bytes,flash_bytes,external_flash_bytes, orarena_bytes.device.runtime_modeback_to_backselects continuous execution, whilecadencedselects periodic execution.device.latency_budget_msOptional shared cadence-budget override. When omitted, the runtime derives it from the active dataset cadence, firstdataset.params.batch_period_ms, thendataset.params.stride / dataset.params.sampling_rate_hz * 1000for the built-inoxioddataset.device.serial_portDUT serial port.device.measured_inference_runsNumber of repeated inference invokes averaged into one measured pass.device.serial_timeout_sdevice.dut_ready_timeout_sdevice.cpu_clock_mhz_optionsOptional per-trial CPU presets for boards that support runtime clock selection.
Harness-related keys
device.harness_serial_portdevice.harness_fqbndevice.harness_auto_flashdevice.harness_arm_pindevice.harness_trigger_pindevice.dut_arm_hold_msdevice.harness_stable_low_msdevice.harness_ready_timeout_sdevice.harness_arm_timeout_sdevice.harness_active_timeout_sdevice.harness_done_timeout_s
Per-backend nested blocks include the following.
device.portenta.*device.stm32.*
See the STM32 backend guide for setup and supported options. STM32 settings include the following.
template_rootproject_rootgdbservergdbcubeprog_binsigning_toolgdb_portapidserver_ready_timeout_swake_margin_usmin_sleep_usweight_storage_modeappli_flash_addressweights_flash_addressweights_memory_poolweights_external_loadersigning_load_offsetsigning_header_versionmax_external_flash_bytes
Validation notes
device.runtime_modemust beback_to_backorcadenced.- The STM32 backend uses the LRUN
dev_bootlayout. device.latency_budget_msmust be positive when set.device.measured_inference_runsmust be an integer>= 1.device.cpu_clock_mhz_optionsmust be a non-empty integer list when set.- For
STM32_NUCLEO_N657X0_Q,device.cpu_clock_mhz_optionsis validated against the backend-supported set in code. - For
PORTENTA_H7andARDUINO_NANO_33_BLE_SENSE, cadenced mode requirestraining.input_mode: uniform.
Understand measurement windows · Bring up hardware
For more information, read the full config README on GitHub.