Repository navigation
Try to enable LTO in OSS - #180186
Try to enable LTO in OSS#180186Skylion007 wants to merge 13 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/180186
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 New Failures, 1 Unclassified FailureAs of commit f4fa506 with merge base 612b9a5 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Nice, CLANG LTO seems to work. :) |
|
Need CPUInfo submodule updated to include: pytorch/cpuinfo#344 |
| endif() | ||
|
|
||
| # Enable IPO for Release builds if not explicitly set | ||
| if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT DEFINED CMAKE_INTERPROCEDURAL_OPTIMIZATION) |
There was a problem hiding this comment.
May need to disable on MSVC if ONE_DNN MSVC bug is not fixed
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
023546b to
d654d31
Compare
d654d31 to
023546b
Compare
|
Okay, the blocking issue from enabling LTO is FBGEMM enabling masm=intel https://github.com/pytorch/FBGEMM/blob/9637997e5c75e4d04b0ab3afb7e64b8b33fba415/CMakeLists.txt#L154 and there being a GCC LTO bug |
023546b to
e18d087
Compare
| # Enable IPO for Release builds if not explicitly set. | ||
| # Leave it off on Windows for now, DNNL static library build fails. | ||
| if(CMAKE_BUILD_TYPE STREQUAL "Release" | ||
| AND NOT WIN32 |
There was a problem hiding this comment.
Alternatively disable it only on LTO on dnnl on Windows
| set(FBGEMM_LIBRARY_TYPE "static" CACHE STRING "") | ||
| add_subdirectory("${FBGEMM_SOURCE_DIR}") | ||
|
|
||
| # Fix LTO bug |
There was a problem hiding this comment.
LTO toolchain bug on manylinux.
bf94db3 to
6861428
Compare
| # shouldn't be too bad to just disable the checks. | ||
| set_target_properties(fmt-header-only PROPERTIES INTERFACE_COMPILE_FEATURES "") | ||
|
|
||
| # Keep fmt's header-only type layout stable across mixed C++ modes. Otherwise |
There was a problem hiding this comment.
This needs to get fixed, looks like one of the submodules is messing with it and trying to compile with CPP17?
|
I need to bump the memory available on the runners for the failing linkers. :) |
Some fixes from #180186 Pull Request resolved: #180868 Approved by: https://github.com/albanD
7d233b8 to
3fb77a3
Compare
Some fixes from pytorch#180186 Pull Request resolved: pytorch#180868 Approved by: https://github.com/albanD
Some fixes from pytorch#180186 Pull Request resolved: pytorch#180868 Approved by: https://github.com/albanD
6464f3c to
e438503
Compare
|
@claude figure out how to fix this issue |
|
Claude finished @Skylion007's task in 17m 48s —— View job Both remaining test failures are pre-existing static-initialization-order bugs that LTO exposes — not bugs LTO introduces.
Full analysis and proposed fixes1.
|
|
@pytorchbot rebaes |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
e438503 to
f4fa506
Compare
Modern revival of #137866
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @aditew01