Skip to content

Conversation

@EwanC
Copy link
Contributor

@EwanC EwanC commented Dec 6, 2024

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

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.

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 uninitialized. Therefore this check against zero is not correct.
Fixed the test by initializing the buffers to zero at the beginning of
the test.
@EwanC EwanC requested a review from a team as a code owner December 6, 2024 14:42
@EwanC EwanC requested a review from fabiomestre December 6, 2024 14:42
@EwanC
Copy link
Contributor Author

EwanC commented Dec 9, 2024

@intel/llvm-gatekeepers This is ready to merge, thanks

@sommerlukas sommerlukas merged commit b453dcc into intel:sycl Dec 9, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants