Contents

class

SushiRuntime::API::AdvancedControls

Exposes a narrow, read-only view of runtime-internal state.

Declared in
include/SushiRuntime/api/runtime/runtime.hpp

Precondition

The view does not outlive the Runtime it came from.

See also

include/SushiRuntime/api/runtime/README.md

Public member functions

explicit AdvancedControls(Execution::RuntimeContext &ctx) noexcept

Wraps the runtime's context for read-only inspection.

Parameters

ctx

Context borrowed, not owned; must outlive this view.

std::size_t device_count() const

Reports how many devices the runtime is driving.

Returns

Number of device queues selected at construction; valid device indices are [0, this).

bool profiling_enabled() const noexcept

Tells whether per-kernel timings are being collected.

Returns

True when the queues were built with profiling enabled.

bool rebalancer_enabled() const

Tells whether work is being redistributed by device load.

Returns

True while the background thermal rebalancer is running.

Execution::WorkerPoolInfo worker_pool() const

Returns the worker pool as built, which may differ from the request.

Returns

The worker count, first bound core, and pin policy in effect.

See also

include/SushiRuntime/api/runtime/README.md

std::size_t host_to_device_bytes() const noexcept

Reports upload traffic caused by explicit transfers.

Returns

Cumulative bytes copied host to device since startup; implicit shared-USM migration is not counted.

std::size_t device_to_host_bytes() const noexcept

Reports readback traffic caused by explicit transfers.

Returns

Cumulative bytes copied device to host since startup; implicit shared-USM migration is not counted.