Commit 38c2960
[SYCL] Replace constant address space with global (#576)
Current implementation of address spaces handling leads to possibility
of emitting incorrect (in terms of OpenCL) address space casts from
constant to generic (and vise-versa). So, we use global address space
instead of constant to implement constant_ptr to avoid incorrect address
space casts in the generated device code.
Signed-off-by: Mariya Podchishchaeva <[email protected]>1 parent 863e808 commit 38c2960
File tree
3 files changed
+15
-31
lines changed- sycl/include/CL/sycl
- access
3 files changed
+15
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 196 | + | |
| 197 | + | |
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
| |||
673 | 669 | | |
674 | 670 | | |
675 | 671 | | |
676 | | - | |
677 | | - | |
678 | | - | |
| 672 | + | |
679 | 673 | | |
680 | | - | |
681 | | - | |
682 | | - | |
| 674 | + | |
683 | 675 | | |
684 | 676 | | |
685 | 677 | | |
| |||
1012 | 1004 | | |
1013 | 1005 | | |
1014 | 1006 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
| 1007 | + | |
1018 | 1008 | | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1009 | + | |
1022 | 1010 | | |
1023 | 1011 | | |
1024 | 1012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 73 | | |
85 | 74 | | |
86 | 75 | | |
87 | | - | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
| |||
0 commit comments