FFFF BLD: treat SVML object files better to avoid compiler warnings by rgommers · Pull Request #27587 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD: treat SVML object files better to avoid compiler warnings #27587

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

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

rgommers
Copy link
Member

GCC and Clang didn't mind passing unused compile flags when building object files, but the OneAPI Intel compilers emit lots of warnings like:

[422/593] Compiling C object numpy/_core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so.p/src_umath_svml_linux_avx512_svml_z0_asin_d_la.s.o
icx: warning: argument unused during compilation: '-fvisibility=hidden' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fdiagnostics-color=always' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fno-strict-aliasing' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-D NPY_HAVE_SSE2' [-Wunused-command-line-argument]

Those are fixed after this change. It also reduced the total number of build targets from 593 to 527 when building with SVML.

GCC and Clang didn't mind passing unused compile flags when
building object files, but the OneAPI Intel compilers emit
warnings like:
```
[422/593] Compiling C object numpy/_core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so.p/src_umath_svml_linux_avx512_svml_z0_asin_d_la.s.o
icx: warning: argument unused during compilation: '-fvisibility=hidden' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fdiagnostics-color=always' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fno-strict-aliasing' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-D NPY_HAVE_SSE2' [-Wunused-command-line-argument]
```
Those are fixed after this change.

[skip cirrus] [skip circle]
@github-actions github-actions bot added the 36 - Build Build related PR label Oct 18, 2024
@rgommers rgommers added this to the 2.2.0 release milestone Oct 18, 2024
@charris charris merged commit dc862b4 into numpy:main Oct 18, 2024
66 checks passed
@charris
Copy link
Member
charris commented Oct 18, 2024

Thanks Ralf.

@rgommers rgommers deleted the bld-svml-objects branch October 18, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0