Commit 357e9c8
authored
[SYCL] Fix FPGA devices selection on queue initialization (#1794)
FPGA device selectors use global constants of std::string type as
parameters in constructor. If some other inline global variable uses
fpga_device_selector in its constructor then there may be a situation
when FPGA device selector is initialized before global std::string
objects that it is depending on. Then it cannot find FPGA hw or
emulator devices because it has uninitialized platform name member.
Change type of constant strings with platform names to constant
C-string to guarantee initialization of FPGA device selector with
proper platform name.1 parent 767ddfe commit 357e9c8
File tree
2 files changed
+21
-3
lines changed- sycl
- include/CL/sycl/intel
- test/fpga_tests
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments