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] Fix threadpool reset by killing threads before destroying their shared queue #8658

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

tkonolige
Copy link
Contributor

@electriclilies
Copy link
Contributor

Thanks for the fix! Just curious, why wasn't this causing a segfault on linux?

@tkonolige
Copy link
Contributor Author

No clue. Maybe the thread kill implementation on linux worked faster than the one on macOS?

@tqchen
Copy link
Member

tqchen commented Aug 4, 2021

LGTM, thanks @tkonolige !

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Tristan!

@tkonolige
Copy link
Contributor Author

I will note that I introduced this bug, so don't give me too much thanks :)

@tqchen
Copy link
Member

tqchen commented Aug 4, 2021

I would separate the thanks from past events as we work together to make the code base better together.

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masahi
Copy link
Member

masahi commented Aug 4, 2021

@tkonolige
Copy link
Contributor Author

@mashi, I'm not sure that's related (although it is hanging on test_runtime_profiling.py). I believe #8656 fixed that issue. I've rebased, lets see if it has been fixed.

@jcf94
Copy link
Contributor

jcf94 commented Aug 6, 2021

Thanks! So is it ready to merge? @tkonolige @masahi

@masahi
Copy link
Member

masahi commented Aug 6, 2021

I've seen a number of recent CI jobs killed at test_runtime_profiling.py::test_vm[llvm -device=arm_cpu], and I thought this PR was the fix for it. No idea if this is related to the RPC socket error. Let's see if the issue is gone after merging #8656

@masahi masahi merged commit 40de9ce into apache:main Aug 6, 2021
@tkonolige tkonolige deleted the fix_thread_reset branch August 6, 2021 16:58
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Aug 11, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
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.

7 participants