We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
make_tensor_descriptor
1 parent 9aefe92 commit a19a23bCopy full SHA for a19a23b
python/triton/language/semantic.py
@@ -9,8 +9,6 @@
9
from .._C.libtriton import ir
10
from . import core as tl
11
12
-import triton
13
-
14
T = TypeVar('T')
15
TensorTy = TypeVar('TensorTy')
16
@@ -1921,8 +1919,8 @@ def make_tensor_descriptor(
1921
1919
)
1922
1920
1923
last_stride = tl._unwrap_if_constexpr(strides[-1])
1924
- backend = triton.runtime.driver.active.get_current_target().backend
1925
- if backend != "xpu" and last_stride != 1:
+ backend = self.builder.options.backend_name
+ if backend != "intel" and last_stride != 1:
1926
raise ValueError(f"Tensor descriptor last dim must be 1 but got {last_stride}")
1927
1928
shape = [self.make_scalar(x, tl.int32) for x in shape]
0 commit comments