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

March=native setup.py flag not setup correctly and will not work with MSVC #3428

Closed
hmacdope opened this issue Sep 27, 2021 · 0 comments · Fixed by #3429
Closed

March=native setup.py flag not setup correctly and will not work with MSVC #3428

hmacdope opened this issue Sep 27, 2021 · 0 comments · Fixed by #3429

Comments

@hmacdope
Copy link
Member

Expected behavior

You should be able to build architecture optimised code with the setup.py arch option.
Additionally this option is poorly documented not covered in CI AFAIK.

Actual behavior

setup.cfg has string quotes making the option invalid

march="native" 👎

march=native 👍

Additionally -march is not a valid flag for MSVC, instead the -arch: flag must be used

Code to reproduce the behavior

Uncomment march="native" in setup.cfg and install with setup.py

Current version of MDAnalysis

  • Which version are you using? (run python -c "import MDAnalysis as mda; print(mda.__version__)") 2.1.0-dev0
  • Which version of Python (python -V)? 3.8.8
  • Which operating system? MacOS
@hmacdope hmacdope self-assigned this Sep 27, 2021
IAlibay pushed a commit that referenced this issue Nov 1, 2021
…3429)

Fixes #3428

## Work done in this PR
- Replaces `march` keyword in setup with `extra_cflags` allowing user defined c/c++ flags to be passed at compile time
- Fixes the code paths so that the optimisation flags are parsed properly & not applied to the encore compile flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant