Commit aa3096a
committed
libtorch win-arm64: inject BSD uint typedefs for ATen aarch64 vec headers
Run 6: MAX_JOBS=2 fixed the OOM — win-arm64 compiled cleanly to [563/1448] of
torch_cpu, then a real compile error:
vec128_uint_aarch64.h: error: unknown type name 'uint'
PyTorch's aarch64 NEON vec headers use the BSD integer typedefs (uint/ushort/ulong/
uchar) that <sys/types.h> supplies on Linux/macOS but MSVC/Windows does not — win-arm64
is a new, under-tested PyTorch target. Inject the typedefs into the ATen vec headers
that use them (idempotent marker, survives the cached source tree).1 parent 8f75d57 commit aa3096a
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
0 commit comments