Repository navigation
Commit 708fd43
authored
[Fix][NVPTX] Cast thread index to the loop variable dtype (#20476)
NVPTX GetThreadIndex returned the raw i32 from the tid/ctaid intrinsics
even when the bound loop var is int64. Kernels with symbolic int64
extents then emitted mixed-width LLVM IR and failed module verification.
This casts the result to the loop var dtype, matching the AMDGPU
backend.1 parent 076e83f commit 708fd43
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments