Revert "[feat] introduce Config for centralized runtime settings; refactor progress management and backend selection to leverage config"

This reverts commit 9120e8fb26.
This commit is contained in:
2025-08-12 06:00:10 +02:00
parent 03659448bc
commit d3310695d2
4 changed files with 19 additions and 63 deletions

View File

@@ -226,7 +226,7 @@ pub struct SelectionResult {
/// guidance on how to enable it.
///
/// Set `verbose` to true to print detection/selection info to stderr.
pub fn select_backend(requested: BackendKind, config: &crate::Config) -> Result<SelectionResult> {
pub fn select_backend(requested: BackendKind, verbose: bool) -> Result<SelectionResult> {
let mut detected = Vec::new();
if cuda_available() {
detected.push(BackendKind::Cuda);
@@ -290,7 +290,7 @@ pub fn select_backend(requested: BackendKind, config: &crate::Config) -> Result<
BackendKind::Cpu => BackendKind::Cpu,
};
if config.verbose >= 1 && !config.quiet {
if verbose {
crate::dlog!(1, "Detected backends: {:?}", detected);
crate::dlog!(1, "Selected backend: {:?}", chosen);
}