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: use OpenMP flag to avoid macOS segfault #34

Merged
merged 5 commits into from
Mar 18, 2024
Merged

fix: use OpenMP flag to avoid macOS segfault #34

merged 5 commits into from
Mar 18, 2024

Conversation

tnunamak
Copy link
Member

Fixes #33 (hopefully), as well as a bug preventing completions from generating successfully.

@tnunamak tnunamak requested review from Kahtaf and volod-vana March 18, 2024 19:03
@@ -35,4 +35,13 @@ echo "Running llama-cpp-python-cublas.sh to enable hardware acceleration..."
./scripts/llama-cpp-python-cublas.sh

echo "Running selfie..."

if [ "$(uname -m)" = "arm64" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

arm64 can be Linux too no? Is it okay?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could also check if uname -s matches Darwin, but I'm not sure if this is limited to Macs only... it should be okay to use a conservative setting here. Maybe it impacts performance, I'm not sure.

Ultimately it would be great if we can remove both of these flags, especially KMP_DUPLICATE_LIB_OK, which doesn't appear to be a 100% reliable fix.

@tnunamak tnunamak merged commit 716df52 into main Mar 18, 2024
1 check passed
@tnunamak tnunamak deleted the fix-segfault branch March 18, 2024 23:03
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.

zsh: segmentation fault poetry run python -m selfie
2 participants