Commit d2b3fac
committed
Fix Windows wheel build: force CPU-only to avoid CUDA _portable_lib DLL load failure
Same root cause as the unittest fix in this PR, second site. The Windows wheel
build (build-wheels-windows.yml -> .ci/scripts/wheel/) does not go through
setup-windows.ps1. The Windows CI image has the CUDA 13.2 toolkit on PATH, so
after #20440 added (13, 2) to SUPPORTED_CUDA_VERSIONS, install_executorch's
auto-detection enables EXECUTORCH_BUILD_CUDA and bakes a CUDA _portable_lib +
aoti_cuda_shims.lib into the CPU wheel. The smoke test then fails with:
ImportError: DLL load failed while importing _portable_lib
Windows wheels are CPU-only (with-cuda: disabled), so force
-DEXECUTORCH_BUILD_CUDA=OFF via CMAKE_ARGS in pre_build_script.sh on Windows.1 parent 952e121 commit d2b3fac
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| |||
0 commit comments