Commit b453dcc
Ewan Crawford
[SYCL][Graph] Fix dyn_cgf_accessor_spv.cpp Test (#16295)
The E2E SYCL-Graph test `Update/dyn_cgf_accessor_spv.cpp` checks that
after the first execution of the graph, the accessor referencing
`bufferB` has not been written to. This is done by checking for zero on
the line
```cpp
assert(check_value(i, 0, HostDataB[i], "HostDataB"));
```
However, we never explicitly initialize `bufferB` to zero in the test,
it is still uninitialized at the point of this assert. Therefore this
check against zero is based on UB. This patch fixes the test by
initializing the buffers to zero at the beginning of the test.1 parent 4e13d23 commit b453dcc
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
68 | | - | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
0 commit comments