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

Bugfix: Sidestep MacOS Segfault in OpenMP. #866

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

JosephCatrambone
Copy link
Contributor

In short, HuggingFace (or, Torch, really) is running into an invalid access fault in OpenMP when allocating space for a buffer.

frame #0: 0x000000031fe6992c libomp.dylib`void __kmp_suspend_64<false, true>(int, kmp_flag_64<false, true>*) + 48
libomp.dylib`__kmp_suspend_64<false, true>:

To sidestep this issue we can force the thread count to 1 inside the tests.

@JosephCatrambone JosephCatrambone marked this pull request as ready for review June 26, 2024 20:57
Copy link
Contributor

@dtam dtam left a comment

Choose a reason for hiding this comment

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

fixes all my segfaults for today so far 👍🏻

@JosephCatrambone JosephCatrambone merged commit 55c6dde into 0.5.0-dev Jun 26, 2024
12 checks passed
@JosephCatrambone JosephCatrambone deleted the jc/bug-single-thread-model branch June 26, 2024 21:23
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.

2 participants