Add support for MKL-enabled torch builds on Windows (e.g., the nightly 2.3.0.dev20240308+cpu build). The torch hook now attempts to discover and collect DLLs from MKL and its dependencies (mkl, tbb, intel-openmp).
This should prevent frozen program from silently crashing due to missing MKL DLLs, which slip past PyInstaller's binary dependency analysis due to being dynamically loaded at run time.
Add support for MKL-enabled
torch
builds on Windows (e.g., the nightly2.3.0.dev20240308+cpu
build). Thetorch
hook now attempts to discover and collect DLLs from MKL and its dependencies (mkl
,tbb
,intel-openmp
).This should prevent frozen program from silently crashing due to missing MKL DLLs, which slip past PyInstaller's binary dependency analysis due to being dynamically loaded at run time.
Closes pyinstaller/pyinstaller#8348.