Commit cc5698a
Fix Docker build failure for cuda-windows image by using CUDA_VERSION build arg (#18456)
The install_cuda_windows_cross_compile.sh script was querying PyTorch
for its CUDA version, but PyTorch gets installed indirectly via pip
dependencies (torchsr, timm) even when SKIP_PYTORCH=yes. This causes a
failure if the pip-installed PyTorch reports a CUDA version which isn't
in the version map. Pass the CUDA_VERSION Docker build arg to the script
and prefer it over querying PyTorch.
Co-authored-by: Manuel Candales <42380156+manuelcandales@users.noreply.github.com>1 parent 60fcdcb commit cc5698a
2 files changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
53 | 63 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments