Skip to content

Conversation

v-klochkov
Copy link
Contributor

If specialization constant is not used on device, then the buffer for
it is not created on device side. In this case the host part passes nullptr
for the corresponding kernel operand holding the reference to the buffer
with constants.
This patch fixes the level_zero arguments handling to avoid SegFault
in the plugin.

Signed-off-by: Vyacheslav N Klochkov [email protected]

@v-klochkov v-klochkov requested a review from a team as a code owner July 21, 2022 18:32
@v-klochkov v-klochkov force-pushed the esimd_spec_const_arg_nullptr branch 2 times, most recently from 23016a8 to ba0df83 Compare July 21, 2022 18:57
If specialization constant is not used on device, then the buffer for
it is not created on device side. In this case the host part passes nullptr
for the corresponding kernel operand holding the reference to the buffer
with constants.
This patch fixes the level_zero arguments handling to avoid SegFault
in the plugin.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov
Copy link
Contributor Author

The only fail is "SYCL :: regression/abs_fix_test.cpp". It is unrelated and is a known issue that is resolved recently.
Merging now.

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.

2 participants