Page MenuHomeSolus

Update pytorch to 1.11.0 and rebuild against lapack

Authored by GZGavinZhao on Jun 30 2022, 4:53 PM.



Depends on D13319, D13307.

  • Update pytorch to 1.11.0 because of too many build failures.
  • Rebased patches.
  • Build against system intel-tbb.
  • Bring back avx2 for that sweet 10~20% speed increase.
  • Use GCC for now because Clang is not happy with some flag combinations regarding -flto=24.
  • Rebuild against lapack.
  • Move build configurations to the environment section because this is the approach recommended by PyTorch and the previous approach (directly defining them through CMake) might result in some variables getting lost.
Test Plan

Signed-off-by: Gavin Zhao <>

Diff Detail

R4672 pytorch
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

GZGavinZhao created this revision.Jun 30 2022, 4:53 PM
GZGavinZhao requested review of this revision.Jun 30 2022, 4:53 PM
GZGavinZhao edited the summary of this revision. (Show Details)Jun 30 2022, 5:02 PM
Girtablulu accepted this revision.Jul 2 2022, 1:17 PM
Girtablulu added a subscriber: Girtablulu.


This revision is now accepted and ready to land.Jul 2 2022, 1:17 PM
This revision was automatically updated to reflect the committed changes.