We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d672a2e commit 7cfe997Copy full SHA for 7cfe997
pytato/target/loopy/__init__.py
@@ -56,6 +56,7 @@
56
57
import numpy as np
58
from immutabledict import immutabledict
59
+from typing_extensions import override
60
61
import loopy
62
@@ -123,10 +124,12 @@ def __init__(self, device: pyopencl.Device | None = None):
123
124
warn("Passing 'device' is deprecated and will stop working in 2023.",
125
DeprecationWarning, stacklevel=2)
126
127
+ @override
128
def get_loopy_target(self) -> loopy.PyOpenCLTarget:
129
import loopy as lp
130
return lp.PyOpenCLTarget()
131
132
133
def bind_program(self, program: loopy.TranslationUnit,
134
bound_arguments: Mapping[str, Any]) -> BoundProgram:
135
return BoundPyOpenCLProgram(program=program,
0 commit comments