Commit a43c5bd
authored
[SYCL] Allow const device_global (#8642)
This commit default constructs the USM pointer member of a device_global
without the device_image_scope property. This fixes an issue where the
compiler would disallow device_global from being const.
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>1 parent c39de71 commit a43c5bd
File tree
2 files changed
+12
-1
lines changed- sycl
- include/sycl/ext/oneapi/device_global
- test/regression
2 files changed
+12
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments