Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update build guide to use mkl-static. (pytorch#116946)
# Background: We found current build guide use mkl dynamic link. It may trigger a mkl link issue. Detailed: In build environment, libtorch_cpu.so will dynamic link to system mkl binaries by default. If users install another version mkl library, it may lead to mkl symbol conflict. I also checked released pytorch binary it use static mkl link. The build script shows it: https://github.com/pytorch/builder/blob/main/common/install_mkl.sh#L10 # Solution: Update build guide to use mkl static link. And it is aligned to build script. Conda install command docs: https://anaconda.org/intel/mkl-static https://anaconda.org/intel/mkl-include # Validation No mkl libraries dependencing, after use `conda install intel::mkl-static intel::mkl-include`. ## Windows ![image](https://github.com/pytorch/pytorch/assets/8433590/cc554ded-d827-4de5-81c6-cc3039155580) ## Linux <img width="959" alt="image" src="https://github.com/pytorch/pytorch/assets/8433590/79766ad8-4ba2-4ff1-adc9-63affd8d419a"> Pull Request resolved: pytorch#116946 Approved by: https://github.com/jgong5, https://github.com/malfet
- Loading branch information