Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/pipeline/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@ impl PipelineConfig {
/// Controls execution parameters that do not affect correctness but do affect performance.
#[derive(Debug, Clone)]
pub struct RuntimeConfig {
/// Number of chunk embedding workers
/// Number of chunk embedding workers.
///
/// Currently unused: no code path reads this field on either the CUDA or CoreML
/// execution mode (verified against the whole crate — see #13). Its sibling field
/// below, `chunk_emb_compute_units`, is CoreML-only, and CoreML sessions can only
/// run one at a time — so this almost certainly exists to parallelize chunk
/// embedding across several single-threaded CoreML workers rather than to control
/// CUDA concurrency (CUDA already gets concurrency from shared, mutex-protected
/// ORT sessions). It's reserved for that future CoreML worker-pool implementation;
/// setting it has no effect today on any mode.
pub chunk_emb_workers: usize,
/// CoreML compute units for chunk embedding (CoreML modes only)
#[cfg(feature = "coreml")]
Expand Down