This PR introduces an enhancement to control the number of threads used by OpenMP via the OMP_NUM_THREADS environment variable, which by default is set to 1 and can also be controlled via a command-line argument.
ONNX Runtime and OpenMPonnxruntime uses OpenMP for parallelism to improve performance on multi-core systems. By setting OMP_NUM_THREADS, we can control the number of threads used during the execution of ONNX models, ensuring efficient resource utilization and predictable performance.
This PR introduces an enhancement to control the number of threads used by OpenMP via the OMP_NUM_THREADS environment variable, which by default is set to
1
and can also be controlled via a command-line argument.ONNX Runtime and OpenMP
onnxruntime
usesOpenMP
for parallelism to improve performance on multi-core systems. By settingOMP_NUM_THREADS
, we can control the number of threads used during the execution of ONNX models, ensuring efficient resource utilization and predictable performance.Fixes https://github.com/collabora/WhisperLive/issues/201