Repository navigation
Propagating errors through the task system. - #8219
Merged
Merged
Conversation
This allows it to be owned by the task system and shared between both the HAL and the upcoming VM loop scheduler.
ScottTodd
approved these changes
Feb 1, 2022
No reason to have it be an int and that hurts compiler analysis.
Waits still need work that will come with follow-on refactorings. Failures of calls and dispatch workgroups will now make their way to the parent scope and properly discard all subsequent tasks. The scope retains the first failure encountered so that it can be returned back to user layers (propagated to HAL semaphores, the event loop, etc). Progress on #4026.
Sharding is better and it wasn't worth keeping the slicing code around and allocating the extra memory at runtime in case it was used. This drops executor memory consumption to the ~1-4KB + ~512B/worker.
benvanik
force-pushed
the
benvanik-task-errors
branch
from
February 1, 2022 19:33
31fdea8 to
0adc497
Compare
benvanik
marked this pull request as ready for review
February 1, 2022 19:36
benvanik
enabled auto-merge
February 1, 2022 20:02
benvanik
disabled auto-merge
February 1, 2022 20:48
benvanik
enabled auto-merge
February 1, 2022 20:49
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 allows for errors to properly fail task scopes and ensure subsequent work is discarded correctly; errors now propagate up to their parent scope and can be retrieved by HAL semaphores or users for graceful handling. Misc cleanup and simplification was done as part of this and new tests were added to verify the behavior.
Progress on #4026. Waits still need work but are being redesigned in future changes.