Commit ef68fab
committed
Fix the debug info of GridGroup type
The customized CUDA front end type 'GridGroup' maps to the back end
type 'ir.IntType(64)' which is defined in numba.cuda.models.
The numba DIBuilder emit variable types for simple numeric types by
looking into back end type which falls through the 'DW_ATE_float'
because the 'datamodel.fe_type' is not 'types.Integer'.
So emitting this type through the CUDADIBuilder is needed. Since the
type represents the handle of a group object, giving it the encoding
of 'DW_ATE_unsigned' should be reasonable.
A test is also added in this change.
This change addresses #1071 parent e27cb85 commit ef68fab
File tree
2 files changed
+27
-5
lines changed- numba_cuda/numba/cuda
- tests/cudapy
2 files changed
+27
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | | - | |
23 | | - | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
113 | 126 | | |
114 | 127 | | |
115 | 128 | | |
| |||
0 commit comments