Commit 09cbef5
committed
Include windows.h before ORT's CUB wrapper undefines the MSVC SAL __out macro.
CUDA 13 CCCL headers use __out as a parameter name in generated PTX helpers.
If Windows/SAL headers are included later while cub.cuh is being parsed, __out
can be redefined and expanded away, producing invalid code such as "=r"( [0]).
Preloading windows.h lets the existing ORT wrapper undefine __out for the full
CUB/CCCL include.1 parent a2ff388 commit 09cbef5
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
| |||
0 commit comments