Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix child parent dependency #66

Conversation

ikbuibui
Copy link
Collaborator

Fixed a bug where a parent task is destroyed before init_graph is called on child tasks.
Before this PR init_graph was adding the dependency from the child task to the post event of the parent. But init_graph is only called when the child task is actually processed to be put into the ready queue. This leads to a situation where the parent task can be destroyed and its post event will be notified while the child tasks are still in the emplacement queue.
Moved adding the dependency to the parent task from the child task to emplace_task.
This moves some work from scheduling to emplacement.

@ikbuibui ikbuibui added the bug label May 16, 2024
@ikbuibui ikbuibui changed the title Fix child parent deps Fix child parent dependency May 16, 2024
@ikbuibui ikbuibui requested a review from psychocoderHPC May 16, 2024 09:01
@psychocoderHPC psychocoderHPC merged commit 8cb58e5 into ComputationalRadiationPhysics:dev May 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants