General configuration
THOR reads a single YAML configuration file. This page covers its structure, global settings, and options shared by drivers. See the MCRT and ray-tracer references for driver-specific settings.
Listing and validating options
thor --list-config-keys
thor --list-keys --color=always | less -R
thor --validate-config config.yaml
--list-keys is an alias for --list-config-keys. It lists YAML paths, types,
defaults, and descriptions by section. Listing color accepts auto (default),
always, or never; auto disables color for redirected output, TERM=dumb,
or a nonempty NO_COLOR.
The listing covers the shared input schemas for startup, datasets, sources, drivers, output and live services. Validation decodes the selected driver and dataset, checks their requested values and compiled support, and reports unused input paths. Native startup performs the same preflight before creating the logger or selecting an execution queue.
Passing validation does not guarantee that a run can initialize. File contents, dataset-dependent cutouts, dynamic recipes, device availability and other conditions that require loaded data are checked at runtime. Inactive settings retain their documented behavior and may produce warnings.
File structure
# Global settings
# Required
dataset_type: "shellmodel"
driver_type: "mcrtsimulation"
# Optional
device: "cpu" # options: "cpu", "cpu-openmp", "gpu", "multigpu"
log_level: info # options: trace, debug, info, warn, error
log_dir: "./logs"
# Dataset section (name must match dataset_type)
shellmodel:
# ...
Ionizing sampling control
For separate gas-update and convergence-check photon budgets, see Ionizing RT sampling control.
Global settings
| Parameter | Type | Default | Description |
|---|---|---|---|
dataset_type |
string | required | Dataset geometry type |
driver_type |
string | required | Simulation driver |
device |
string | SYCL default | Compute device (see Device Options) |
selftest |
bool | true |
Run device self-tests at startup |
log_level |
string | "debug" |
Logging verbosity; unrecognized values select off |
log_dir |
string | "./logs" |
Log output directory |
delay |
int | 0 |
Startup delay in seconds |
headless |
bool | false |
Disable the live display |
enable_monitor |
bool | true |
Enable resource monitoring |
monitor_interval |
int | 30 |
Monitoring interval in seconds; minimum 1 |
init_barrier |
bool | false |
Synchronize MPI ranks after initialization |
Operation logging
The top-level ops block controls timing diagnostics for finding bottlenecks and
investigating hangs. Each MPI rank writes log_ops_rank<N>.txt under log_dir,
recording device operations, instrumented CPU phases, and timing summaries.
Start/end records help identify unfinished operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
ops.enable |
bool | true |
Enable operation logging |
ops.profiling |
bool | true |
Collect device event timings when available |
ops.scopes |
bool | true |
Collect host scope timings |
ops.scope_first |
int | 3 |
Initial occurrences logged per thread and scope name |
ops.scope_min |
float | 1.0 |
Slow-scope threshold in milliseconds |
ops.scope_rate_hz |
float | 1.0 |
Slow-scope sampling rate in Hz per thread and scope name |
ops.agg_interval |
int | 30 |
Aggregate logging interval in seconds; 0 means final flush only |
ops.scope_ops_agg |
bool | true |
Include device operations in timing aggregates |
Scope sampling limits individual records; all measured scopes contribute to the timing aggregates.
Device options
| Value | Description |
|---|---|
"cpu" |
Default SYCL CPU selector |
"cpu-openmp" |
Explicitly select the OpenMP CPU backend |
"gpu" |
SYCL GPU selector |
"multigpu" |
Multi-GPU with one MPI rank per GPU (requires matching rank count and GPU count per node). Not yet broadly supported. |
Tip
"cpu" lets the SYCL runtime pick a CPU backend, which may not be OpenMP. Use "cpu-openmp" to select the OpenMP backend explicitly.
If ACPP_VISIBILITY_MASK is set, it must agree with device; see the
HPC guide.
Dataset types
See Datasets for each type's configuration.
shellmodel- Spherical shellshellmodel_hole- Spherical shell with conical openingspowerlaw_shellmodel- Power-law shell profilesunigrid- Uniform Cartesian gridoctree- Adaptive Cartesian grid (RAMSES)pss- Tetrahedral phase-space sheetinfiniteslab- Infinite slabinfiniteslab_hole- Slab with square holespointcloud_voronoi- Voronoi tessellation (experimental)pointcloud_voronoi_tree- Tree-accelerated Voronoi (incomplete)pointcloud_sph- SPH particle data; requiresdriver_type: sphprojector
Driver types
mcrtsimulation- Monte Carlo radiative transferraytracer- Forward ray tracing (projections, absorption spectra, tracers, etc)ionizingrtsimulation- Ionizing radiative transfersphprojector- SPH particle projection forpointcloud_sphdatasetstetprojector- Tetrahedral projection forpssdatasets
Settings shared by drivers
Place these settings inside the selected driver's YAML block. Support and interpretation can differ by driver; consult its reference for defaults.
Driver temperature floor
temperature_floor sets the minimum stored gas temperature in Kelvin (default
1.0; 0 disables it). Supported by mcrtsimulation, raytracer, sphprojector,
and tetprojector; Ionizing RT bypasses it. Values must be finite and nonnegative.
The floor applies after populate and field statistics, and affects temperature
projections. Changes trigger a warning with local counts and the original minimum.
Ion fractions and emissivities computed during loading are not recalculated.
Steps and distances
min_step and max_step control step lengths in box units. dist_max limits
travel distance, with a reference point that depends on the driver. See
MCRT transport and
ray-tracer parameters.
Output compression
The compression block selects the codec and its settings. Defaults and
per-output overrides are described under MCRT HDF5 compression
and ray-tracer output.