Commit da3986b
committed
GPU: hand the kernel pointers to Thread() as generic pointers
A kernel's buffers are device memory and the address arrives as an integer, but
the Thread() entry points take their pointer arguments unannotated, which is the
generic address space. Forwarding a device pointer made the call deduce a device
pointer for Args..., which matched no explicit specialisation, so the kernels
linked against a Thread() that is declared and never defined.
The cast goes through device first rather than straight from the integer, so the
generic pointer is formed by the normal conversion.1 parent c1c86e4 commit da3986b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments