tvm_tirx.backend.config

Contents

tvm_tirx.backend.config#

Copy, merge, and serialize explicit per-backend compilation settings.

Functions#

copy_backend_config([config])

Validate and snapshot a mapping without filling any defaults.

merge_backend_configs(*configs)

Overlay explicitly supplied keys; argument lists replace inherited lists.

backend_config_json([config])

Return deterministic JSON, preserving the order of toolchain arguments.

parse_backend_config(value)

Read a configuration snapshot without consulting defaults or process state.

prepare_target(target[, mod])

Resolve the build target, including architectures supplied by CUDA entries.

argparse_backend_config(value)

Parse the same nested mapping accepted by compile and device_entry.

add_backend_config_argument(parser)

Add the shared JSON configuration argument to a command-line interface.