Commit a818801
authored
[SYCL][PI][L0] ZeSerialize false race fix (#2672)
Intel Inspector race condition detector doesn't think there is a race that
can occur when writing ZeSerialize on one thread while reading it on another.
There was never really a race before because all threads would write the same
value, and thus there was no issue. But this way of writing the code removes
the false race, and makes it obvious this global variable can only be
initialized once.1 parent cf879f3 commit a818801
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
693 | 698 | | |
694 | 699 | | |
695 | 700 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| |||
0 commit comments