Skip to content

Reset only failed tasks in reset_threads! #160

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

Merged
merged 3 commits into from
May 28, 2025

Conversation

efaulhaber
Copy link
Contributor

Based on JuliaSIMD/ThreadingUtilities.jl#58.
Closes #159.

#154 caused Trixi.jl CI to freeze sometimes.
I don't have a MWE for this, but the solution is to only re-initialize failed tasks.

To summarize the previous developments:

@efaulhaber efaulhaber closed this May 23, 2025
@efaulhaber efaulhaber reopened this May 23, 2025
@efaulhaber efaulhaber marked this pull request as ready for review May 23, 2025 17:31
@efaulhaber
Copy link
Contributor Author

@oscardssmith could you please have a look at this?

@oscardssmith
Copy link
Member

I would appreciate a test for this, but otherwise, LGTM

@efaulhaber
Copy link
Contributor Author

Not sure what to test here, as I can't reproduce the error this PR is fixing. It is useful to test that reset_threads! doesn't throw errors, but that test already exists (and failed after JuliaSIMD/ThreadingUtilities.jl#54 and before #154).

@oscardssmith oscardssmith merged commit 279ec14 into JuliaSIMD:master May 28, 2025
27 of 58 checks passed
@efaulhaber efaulhaber deleted the reset-if-task-failed branch May 28, 2025 13:38
@efaulhaber
Copy link
Contributor Author

Could you please also add a new release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.7.17 broke multi-threaded CI of Trixi.jl
2 participants