-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks: torch: add support for MKL-enabled torch builds
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.
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Update ``torch`` hook to add support for MKL-enabled ``torch`` builds | ||
on Windows (e.g., the nightly ``2.3.0.dev20240308+cpu`` build). The hook | ||
now attempts to discover and collect DLLs from MKL and its dependencies | ||
(``mkl``, ``tbb``, ``intel-openmp``). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters