Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add test for get_specialization_constant segfault #1634

Open
wants to merge 1 commit into
base: intel
Choose a base branch
from

Conversation

steffenlarsen
Copy link

This commit adds a regression test for a case where get_specialization_constant would cause a segmentation fault after the specialization constant had been set.

This commit adds a regression test for a case where
get_specialization_constant would cause a segmentation fault after the
specialization constant had been set.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen
Copy link
Author

/verify with intel/llvm#8542

Q.submit([&](sycl::handler &CGH) {
CGH.set_specialization_constant<spec_const>(Ref);
Result = CGH.get_specialization_constant<spec_const>();
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also verify the second part of it via writing inside single_task ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original issue only occurred when the specialization constant was read on host.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants