Skip to content
Snippets Groups Projects
Commit 7c72d2b2 authored by EXT Jean-Matthieu Etancelin's avatar EXT Jean-Matthieu Etancelin
Browse files

add kernel debugging output on build failure

parent 10fe1631
No related branches found
No related tags found
1 merge request!34Add custom opencl
Pipeline #94826 passed
...@@ -67,6 +67,15 @@ class OpenClCustomOperator(CustomOperatorBase, OpenClOperator): ...@@ -67,6 +67,15 @@ class OpenClCustomOperator(CustomOperatorBase, OpenClOperator):
self.func, self.func,
f"__{self.name}_elementwise", preamble=str(cg)) f"__{self.name}_elementwise", preamble=str(cg))
# Build testing:
try:
self.__elementwise.get_kernel(False)
except cl.RuntimeError as e:
print("USED KERNEL")
print(",".join(kernel_args))
print(str(cg)+self.func)
raise e
@op_apply @op_apply
def apply(self, **kwds): def apply(self, **kwds):
super().apply(**kwds) super().apply(**kwds)
......
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