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

Merge branch 'add-custom-opencl' of git.univ-pau.fr:vortex/hysop into add-custom-opencl

parents d480bbc6 7c72d2b2
No related branches found
No related tags found
1 merge request!34Add custom opencl
...@@ -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