alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.38k stars 1.04k forks source link

Set number of OpenBLAS threads #1414

Open johngebbie opened 11 months ago

johngebbie commented 11 months ago

This sets the number of openblas threads in case openblas wasn't compiled with USE_LOCKING=1 USE_THREAD=0.

This slightly nicer version is untested, but simply adding the #include and openblas_set_num_threads(1); is what I patched for Alpine.