-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG]: IPO isn't detected properly with IntelLLVM #4080
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
Labels
Comments
@mablanchard We would welcome a PR that fixes this and adds testing of the IntelLLVM compiler to our CI. Feel free to open one. |
mablanchard
added a commit
to mablanchard/pybind11
that referenced
this issue
Dec 12, 2022
rwgk
added a commit
that referenced
this issue
Dec 16, 2022
* IPO/LTO support for ICX (IntelLLVM) compiler #4080 * style: pre-commit fixes * Add WARNING/HELP WANTED comment. Co-authored-by: Martin Blanchard <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>
rwgk
added a commit
to rwgk/pybind11clif
that referenced
this issue
Jan 2, 2023
s 89c3561 Fix multi-context new Python linking mode (google#4401) s ece1206 ci: set `env: VERBOSE: 1` (google#4405) s 09db644 IPO/LTO support for ICX (IntelLLVM) compiler (google#4402) s a97c4d2 fix(cmake): support Windows ARM cross-compilation (google#4406) s ee4b9f5 Fix ODR violations in our Eigen Tensor tests (google#4412) s 3fd1520 docs: changelog for next version (google#4413) s 0694ec6 chore: preapre for 2.10.2 release (google#4414) s a6b1913 Tracking ci.yml changes from master. Fix multi-context new Python linking mode (google#4401) Allow CMake find_package() from multiple directories. pybind/pybind11#4400 Co-authored-by: Martin Blanchard <[email protected]> ci: set `env: VERBOSE: 1` (google#4405) * Revert "Systematically add `-DCMAKE_VERBOSE_MAKEFILE=ON` to obtain full command lines related to `-Wodr` (google#4398)" This reverts commit ff42f52. * Set `env: VERBOSE: 1` as suggested by @henryiii * Set `env: VERBOSE: 1` also in all other .yml files using cmake IPO/LTO support for ICX (IntelLLVM) compiler (google#4402) * IPO/LTO support for ICX (IntelLLVM) compiler pybind/pybind11#4080 * style: pre-commit fixes * Add WARNING/HELP WANTED comment. Co-authored-by: Martin Blanchard <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]> fix(cmake): support Windows ARM cross-compilation (google#4406) Signed-off-by: Henry Schreiner <[email protected]> Signed-off-by: Henry Schreiner <[email protected]> Fix ODR violations in our Eigen Tensor tests (google#4412) * First * Fix centos 7 again :( * Fix minor nits docs: changelog for next version (google#4413) * docs: changelog for next version Signed-off-by: Henry Schreiner <[email protected]> * docs: address feedback Signed-off-by: Henry Schreiner <[email protected]> Signed-off-by: Henry Schreiner <[email protected]> chore: preapre for 2.10.2 release (google#4414) Signed-off-by: Henry Schreiner <[email protected]> Signed-off-by: Henry Schreiner <[email protected]> Tracking ci.yml changes from master.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Required prerequisites
Problem description
Running CMake
find_package(pybind11)
on Windows + Intel new ICX compiler (a.k.a. IntelLLVM) gives:From the
CMakeError.log
file:Indeed,
pybind11Common.cmake
doesn't seem to handle the ICX compiler correctly and misinterpret itsCMAKE_CXX_COMPILER_ID
(beingIntelLLVM
for new ICX) for the Intel Classic compiler (beingIntel
for old ICC/ICL).I believe the ICX compiler expects
-ipo
onUNIX
but-Qipo
onWIN32
.Reproducible example code
Ran like:
Gives:
The text was updated successfully, but these errors were encountered: