Thanks to visit codestin.com
Credit goes to github.com

Skip to content

do not use simd neon intrinsics on x86#2893

Merged
awni merged 1 commit intoml-explore:mainfrom
davidkoski:accelerate-x86
Dec 10, 2025
Merged

do not use simd neon intrinsics on x86#2893
awni merged 1 commit intoml-explore:mainfrom
davidkoski:accelerate-x86

Conversation

@davidkoski
Copy link
Contributor

Proposed changes

Conditional include of accelerate_simd.h on x86_64, especially for Release builds (Xcode) of mlx-swift.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

- see ml-explore/mlx-swift#309
- when MLX_USE_ACCELERATE and building for an x86_64 target do not try to use the accelerate_simd header which requires neon
- this is true for Release builds (Xcode) for mlx-swift
Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@awni awni merged commit 937ce79 into ml-explore:main Dec 10, 2025
12 checks passed
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