Repository navigation
Treat GPU event_query failures as fatal - #797
Open
QingleiCao wants to merge 1 commit into
Open
QingleiCao wants to merge 1 commit into
QingleiCao wants to merge 1 commit into
Conversation
bosilca
requested changes
Sep 24, 2026
bosilca
left a comment
Contributor
There was a problem hiding this comment.
Logically correct, but from a performance point of view terrible, as it disables the tasks submission pipelining by returning PARSEC_HOOK_RETURN_AGAIN when no events are ready.
--- a/parsec/mca/device/device_gpu.c
+++ b/parsec/mca/device/device_gpu.c
@@ -2646,9 +2646,18 @@
/* the task can be withdrawn by the system */
return rc;
}
- if( 0 != rc ) {
- return PARSEC_HOOK_RETURN_AGAIN;
+ if( 0 > rc ) {
+ /* A backend event error is fatal for this device: CUDA surfaces
+ * asynchronous illegal memory accesses here, and retrying the same
+ * event can never make it valid again. Note that PARSEC_ERROR and
+ * PARSEC_HOOK_RETURN_AGAIN share the same value, so the error must
+ * be remapped before it reaches the caller.
+ */
+ return PARSEC_HOOK_RETURN_ERROR;
}
+ /* The oldest event is not ready yet. Fall through, so that the
+ * remaining event slots of this stream can still be filled.
+ */
}
grab_a_task:
Contributor
|
Ahh yes, that one's been nagging me for a while. Hope to see this landing soon (preferably @bosilca's solution) |
QingleiCao
force-pushed
the
qinglei/hotfix
branch
from
September 27, 2026 03:11
1c12fc8 to
19330c4
Compare
cudaEventQuery returns PARSEC_ERROR (-1) on illegal memory access, which collides with PARSEC_HOOK_RETURN_AGAIN. Remap negative rc so the device is disabled instead of retrying the same dead event forever.
QingleiCao
force-pushed
the
qinglei/hotfix
branch
from
September 28, 2026 14:31
19330c4 to
f574b45
Compare
Contributor
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.
cudaEventQuery returns PARSEC_ERROR (-1) on illegal memory access, which collides with PARSEC_HOOK_RETURN_AGAIN. Remap negative rc so the device is disabled instead of retrying the same dead event forever.
Do not merge before #814.