Implement event batching in the miniframework #364
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR picks up from where @fwyzard left in #143.
It contains 3 main commits:
Add a doneWaiting overload without the exception argument:
This commit is not related to the implementation of event batching. It just allows us to call
doneWaiting()
without passing an exception pointer instead of passing an empty pointer.Add event batching support for fwtest:
The event batching feature is enabled by passing the
--batchEvents <batch-size>
option.From original PR
Note:
The commit deletes the files
src/fwtest/plugin-Test2/TestProducer2.cc
andsrc/fwtest/plugin-Test2/TestProducer3.cc
and replaces them with batching test.Copy event batching support from fwtest to cuda:
This commit copies the same event baching implementation to cuda.
The cuda modules are not changed at the moment, they still process each event individually even if batching is used. The modules will be updated in the future to take advantage of batching.