-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add host kernel instantiation for debuggers #15256
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] Add host kernel instantiation for debuggers #15256
Conversation
The changes in intel#14460 removed the seemingly unused functions for running kernels on on host. However, this turned out to be used by debuggers as they need the kernel code to be in the host executable. This commit adds a simplified version of the kernel instantiation that the aforementioned patch removed. Signed-off-by: Larsen, Steffen <[email protected]>
Timeout in host_task_unsampled_image_write is unrelated. |
Ping @bso-intel | @intel/llvm-reviewers-runtime |
@@ -154,6 +154,8 @@ runKernelWithArg(KernelType KernelName, ArgType Arg) { | |||
// The pure virtual class aimed to store lambda/functors of any type. | |||
class HostKernelBase { | |||
public: | |||
// NOTE: InstatitateKernelOnHost() should not be called. | |||
virtual void InstatitateKernelOnHost() = 0; |
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.
Should it be
virtual void InstatitateKernelOnHost() = 0; | |
virtual void InstantiateKernelOnHost() = 0; |
?
And also for a comment above
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.
Addressed in #15300
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.
Agreed to fix a typo separately
The changes in intel#15256 unintentionally broke ABI by reordering the virtual member functions of HostKernelBase. This commit amends this by moving the new function to the end of the new member function. Additionally, this fixes a typo in the new function. Signed-off-by: Larsen, Steffen <[email protected]>
The changes in #15256 unintentionally broke ABI by reordering the virtual member functions of HostKernelBase. This commit amends this by moving the new function to the end of the new member function. Additionally, this fixes a typo in the new function. --------- Signed-off-by: Larsen, Steffen <[email protected]> Co-authored-by: Marcos Maronas <[email protected]>
The changes in intel#14460 removed the seemingly unused functions for running kernels on on host. However, this turned out to be used by debuggers as they need the kernel code to be in the host executable. This commit adds a simplified version of the kernel instantiation that the aforementioned patch removed. Signed-off-by: Larsen, Steffen <[email protected]>
) The changes in intel#15256 unintentionally broke ABI by reordering the virtual member functions of HostKernelBase. This commit amends this by moving the new function to the end of the new member function. Additionally, this fixes a typo in the new function. --------- Signed-off-by: Larsen, Steffen <[email protected]> Co-authored-by: Marcos Maronas <[email protected]>
The changes in #14460 removed the seemingly unused functions for running kernels on on host. However, this turned out to be used by debuggers as they need the kernel code to be in the host executable.
This commit adds a simplified version of the kernel instantiation that the aforementioned patch removed.