-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
GH-37750: [R][C++] Add compatability with IntelLLVM #37781
Conversation
This required for cmake >=3.20 otherwise the ID will be Intel
|
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.
+1
Can we add a nightly CI job for IntelLLVM?
If there was any user request/bug reports for it but we only found this due to a synthetic test on CRAN so I don't really think that is worth the effort and cost(in ci time) at the moment. AFAIK we don't even have a job for classic Intel compiler... |
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel" OR CMAKE_CXX_COMPILER_ID STREQUAL | ||
"IntelLLVM") |
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.
The code further up in the diff is using a regex-match already; would make this a bit easier I guess...
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel" OR CMAKE_CXX_COMPILER_ID STREQUAL | |
"IntelLLVM") | |
elseif(CMAKE_CXX_COMPILER_ID MATCHES "^Intel(LLVM)?$") |
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.
I hope you don't mind, but I'm going to merge the PR as I need it to cherry-pick into an R package release I'm doing today, but we could make this change in a follow-up PR.
### Rationale for this change The IntelLLVM compiler has a different compiler ID that we currently can't handle and causes the build to fail. ### What changes are included in this PR? This adds the missing flags/IDs. Mimalloc in the current bundled version is not compatible with IntelLLVM this can be worked around by using a system version, a simple version bump is not sufficient and I don't think it's worth the effort to fix it properly for now. For the R package build I have disabled mimalloc with IntelLLVM to avoid issues on CRAN. * Closes: apache#37750 Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de> Signed-off-by: Nic Crane <thisisnic@gmail.com>
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit fecb968. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
### Rationale for this change The IntelLLVM compiler has a different compiler ID that we currently can't handle and causes the build to fail. ### What changes are included in this PR? This adds the missing flags/IDs. Mimalloc in the current bundled version is not compatible with IntelLLVM this can be worked around by using a system version, a simple version bump is not sufficient and I don't think it's worth the effort to fix it properly for now. For the R package build I have disabled mimalloc with IntelLLVM to avoid issues on CRAN. * Closes: apache#37750 Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de> Signed-off-by: Nic Crane <thisisnic@gmail.com>
### Rationale for this change The IntelLLVM compiler has a different compiler ID that we currently can't handle and causes the build to fail. ### What changes are included in this PR? This adds the missing flags/IDs. Mimalloc in the current bundled version is not compatible with IntelLLVM this can be worked around by using a system version, a simple version bump is not sufficient and I don't think it's worth the effort to fix it properly for now. For the R package build I have disabled mimalloc with IntelLLVM to avoid issues on CRAN. * Closes: apache#37750 Authored-by: Jacob Wujciak-Jens <jacob@wujciak.de> Signed-off-by: Nic Crane <thisisnic@gmail.com>
Rationale for this change
The IntelLLVM compiler has a different compiler ID that we currently can't handle and causes the build to fail.
What changes are included in this PR?
This adds the missing flags/IDs. Mimalloc in the current bundled version is not compatible with IntelLLVM this can be worked around by using a system version, a simple version bump is not sufficient and I don't think it's worth the effort to fix it properly for now.
For the R package build I have disabled mimalloc with IntelLLVM to avoid issues on CRAN.
Unknown compiler: IntelLLVM 2023.2.0
#37750