Skip to content
Snippets Groups Projects
Commit 03e6e62f authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Rename KernelWithOverriddenCall->KernelWithCustomEnqueue

parent 75e460b7
No related branches found
No related tags found
1 merge request!134Speed up enqueue
...@@ -857,12 +857,12 @@ def _add_functionality(): ...@@ -857,12 +857,12 @@ def _add_functionality():
# Make ourselves a kernel-specific class, so that we're able to override # Make ourselves a kernel-specific class, so that we're able to override
# __call__. Inspired by https://stackoverflow.com/a/38541437 # __call__. Inspired by https://stackoverflow.com/a/38541437
class KernelWithOverriddenCall(type(self)): class KernelWithCustomEnqueue(type(self)):
pass pass
self.__class__ = KernelWithOverriddenCall self.__class__ = KernelWithCustomEnqueue
KernelWithOverriddenCall.__call__ = enqueue KernelWithCustomEnqueue.__call__ = enqueue
KernelWithOverriddenCall.set_args = set_args KernelWithCustomEnqueue.set_args = set_args
def kernel_get_work_group_info(self, param, device): def kernel_get_work_group_info(self, param, device):
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment