-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[fftw3] add neon support #45222
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
[fftw3] add neon support #45222
Conversation
@microsoft-github-policy-service agree company="ifm electronic" |
#error: "NEON only works in single precision on 32 bits ARM"My understanding is that NEON is ARM32 only, not ARM64? I pushed a suggested edit, but given the title of this explicitly talking about ARM64 please look closely. |
|
On the |
|
ah so its not so easy as fftw will be compiled as fftw3 (double) fftw3f (float) and fftw3l (long double) module. Neon is available for arm32 in single precision (float) and for arm64 (double). We just used it on arm64 where everything worked fine, so arm32 will need some adoptions where I need to dig deeper, not sure when I can achieve that. |
|
the easiest thing would be to adapt the module options on arm32 to turn NEON off for fftw3 (not fftw3f!). So there would need to be a change here for arm32 to disable NEON for double: vcpkg/ports/fftw3/portfile.cmake Line 35 in 4e921c3
what do you think @BillyONeal? its not very nice and I'm not sure if its possible, but it would make it work |
Unfortunately I don't really know anything about 'fftw3' to make this kind of call :(. I can help express what is intended to be supported in a way vcpkg understands, but if the build is actually broken it seems that needs to be fixed first. |
4e921c3 to
789b33a
Compare
|
I cut off my commit that blocked to arm32 and kept only the ci.feature.baseline.txt changes. Sorry for it being more complex than expected :) |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 45222 in repo microsoft/vcpkg |
|
Looks like I cannot start the pipelines, @BillyONeal I did some reasonable changes that should fix hopefully all errors, can you please review my changes and trigger the pipelines again? Thanks a lot. |
dg0yt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI doesn't run because you must resolve some conflicts.
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
ok, thanks for your support and suggestions. understood how things meant to be done. a small change was needed, but looks good from my side now |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 45222 in repo microsoft/vcpkg |
dg0yt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't change ci.features.baseline.txt. (Different sections.)
And there still is a merge conflict, preventing CI.
ok, I'm not sure why @BillyONeal made a change to this? |
Because I was trying to make the test pass: https://dev.azure.com/vcpkg/public/_build/results?buildId=115098 fftw3[core,openmp]:x64-windows-static resulted in the unexpected state pass after 1.8 min |
# Conflicts: # scripts/ci.feature.baseline.txt
|
I see, the feature-fails were grouped together and I undid that. Reverted that part. |
|
Looks good, thank you 🙂 |
scripts/ci.feature.baseline.txt
Outdated
| symengine[tcmalloc](windows) = feature-fails # tcmalloc not found. See https://github.com/microsoft/vcpkg/issues/33576 | ||
| tgui[sdl2] = options # At least one of the backend features must be selected: sdl2 sfml | ||
| vlfeat[openmp](osx) = feature-fails # No openmp on osx | ||
| vlfeat[openmp](osx) = feature-fails # No openmp on osxa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking for a volunteer to remove the typo here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
volunteer found, done
add fftw3 patch for neon as seen in this source repository local PR FFTW/fftw3#275 that will probaby never be merged there.
SHA512s are updated for each updated download.The "supports" clause reflects platforms that may be fixed by this new version.Any fixed CI baseline entries are removed from that file.Any patches that are no longer applied are deleted from the port's directory../vcpkg x-add-version --alland committing the result.Only one version is added to each modified port's versions file.