anira-project / anira

an architecture for neural network inference in real-time audio applications
https://doi.org/10.1109/IS262782.2024.10704099
Apache License 2.0
131 stars 5 forks source link

Enhanced Thread synchronization and new default values #5

Closed faressc closed 2 months ago

faressc commented 2 months ago

Fixes #4

Adds enhanced thread synchronization by implementing the std::this_thread::yield() method. Still sleeping is necessary to not run the CPUs to hot.

Also new default configs and docu update.

vackva commented 2 months ago

Currently, the provided configurations for CNN, RNN, and hybrid models include a wait_in_process_block time, while the semaphore option is disabled by default. To ensure consistency, I suggest setting the wait_in_process_block time to zero by default for all example configurations.

vackva commented 2 months ago

tested the current state now on windows - everything works fine now, even with all threads enabled, the operating system is not interrupted at all

faressc commented 2 months ago

Now Linux, too, works flawlessly.