Commit d5057fa
committed
[build] Only bundle CUDA DLLs that cv2.pyd actually needs
PE import analysis shows ~1.3 GB of CUDA toolkit DLLs bundled in the
wheel are never referenced by cv2.pyd or its transitive dependencies.
Switch from copying all CUDA bin/*.dll to an allowlist of only the
DLLs that are actually linked: cublas, cublasLt, cudart, cufft, and
the npp libraries.1 parent 0faece6 commit d5057fa
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| |||
0 commit comments