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 building SSE2 support for Windows #91

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

ryanvolz
Copy link
Contributor

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

With ENABLE_SSE2, the check for HAVE_SSE2 fails because the required compiler flag (/arch:SSE2) only exists for 32-bit builds. Since SSE2 is the default for 64-bit builds, we can set HAVE_SSE2 manually to build with SSE2 support.

This probably fixes a reported issue with a package that uses fftw where the program exits prematurely as soon as an FFT is needed. This seems to happen for users whose processors don't support AVX instructions and would fallback on SSE2, except it's not properly enabled. The caveat is that I've been unable to get the bug reporters to confirm whether this fixes the issue or not, but it still seems like a worthwhile fix regardless.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Copy link
Contributor

@egpbos egpbos left a comment

Choose a reason for hiding this comment

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

After adding the suggested reminder comment, this looks good to me. Thanks for your contribution and apologies for the late reply!

recipe/bld_fftw.bat Show resolved Hide resolved
With ENABLE_SSE2, the check for HAVE_SSE2 fails because the required
compiler flag only exists for 32-bit builds. Since SSE2 is the default
for 64-bit builds, we can set HAVE_SSE2 manually.
@egpbos
Copy link
Contributor

egpbos commented Dec 1, 2022

Let's wait for CI to finish and then it's merging time.

@egpbos egpbos merged commit c7f967c into conda-forge:main Dec 1, 2022
@egpbos
Copy link
Contributor

egpbos commented Dec 1, 2022

Thanks again!

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.

3 participants