[SYCL] Fix DeviceCodeSplit checks to eliminate KernelInfo usage #9316
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SYCL implementation does not properly support KernelInfo usage in multiple translation units. In this test integration header with File1Kern1 is included to main source file where we execute that kernel. In the second file get_kernel_id is used for checks but integration header is not attached to that file since we do not execute kernel there and we got UB because trying to use get_name() function of KI. This problem is a known one. This test doesn't target to verify this behavior - it is targeted to verify that kernels from different files is added to different device images if we built it with related option. A different check is implemented that do not involve UB case and enable initially disabled checks because of the problem above.