-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Celerity buffer for storing sampled frames in wave_sim
Working with side effects from within host tasks (such as adding frames to the `std::vector` in the previous implementation) requires careful consideration as we currently lack a way of describing data dependencies between such tasks. This can (and did) lead to confusing bugs where depending on the `--sample-rate` setting, some `store` host tasks don't have a clear ordering in the task graph, meaning they could be executed in any order (leading to wrong results) or even concurrently (potentially causing a crash). While such problems can currently be worked around with manual syncing, this change circumvents the problem entirely by using a `celerity::buffer` instead of an `std::vector` for storing sampled frames.
- Loading branch information
Showing
1 changed file
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters