We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e0a94 commit e056c81Copy full SHA for e056c81
crates/accelerate/src/lib.rs
@@ -44,7 +44,11 @@ pub fn getenv_use_multiple_threads() -> bool {
44
let result = !parallel_context || force_threads;
45
46
// Log threading decision if debug logging is enabled
47
- if env::var("QISKIT_DEBUG_THREADING").is_ok() {
+ if env::var("QISKIT_DEBUG_THREADING")
48
+ .unwrap_or_else(|_| "FALSE".to_string())
49
+ .to_uppercase()
50
+ == "TRUE"
51
+ {
52
eprintln!(
53
"Rust threading decision: {} (parallel_context={}, force_threads={})",
54
if result { "MULTI_THREADED" } else { "SINGLE_THREADED" },
0 commit comments