-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL] Check if kernel_bundle contains compatible kernels #7691
Conversation
According to the SYCL2020 get_kernel_bundle() and has_kernel_bundle() should check that kernels are compatible with device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have some minor stylistic concerns, but I haven't had much experience with the kernel_bundle
s. You might want to find an additional reviewer more familiar with the area.
@aelovikov-intel I hope I haven't miss any of your comments, could you please take one more look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM style-wise (with just a few minor comments) and function-wise based on my limited knowledge.
for (RTDeviceBinaryImage *Img : BinImages) { | ||
const RTDeviceBinaryImage::PropertyRange &PropRange = | ||
Img->getDeviceRequirements(); | ||
for (RTDeviceBinaryImage::PropertyRange::ConstIterator It : PropRange) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll reply near the new code.
while (!Aspects.empty()) { | ||
aspect Aspect = Aspects.consume<aspect>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be widespread enough pattern to justify its own utility. Should go to a separate PR though.
…/llvm into check-is-compatible
@aelovikov-intel thanks for the comments! @intel/sycl-language-enabling-triage could you take a look please? |
I believe Plugin/level_zero_batch_event_status.cpp failure is unrelated |
@intel/llvm-gatekeepers |
According to the SYCL2020 get_kernel_bundle() and
has_kernel_bundle() should check that kernels are compatible
with device.