Skip to content

Commit 0bfc1cc

Browse files
Masahiro Masudamasahi
authored andcommitted
check against IntImm instead of Var
1 parent 78338c1 commit 0bfc1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/topi/cuda/scan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def exclusive_scan_ir(data, output, reduction=None, binop=tvm.tir.generic.add, i
105105
size_cast_dtype = "float64"
106106
target = tvm.target.Target.current()
107107

108-
if "vulkan" in str(target) and isinstance(scan_axis_size, tvm.tir.expr.Var):
108+
if "vulkan" in str(target) and not isinstance(scan_axis_size, tvm.tir.expr.IntImm):
109109
# SPIRV seems to have an issue with float64 intrinsic
110110
# TODO(masahi): Eliminate this concern by adding TIR level CSE
111111
msg = """

0 commit comments

Comments
 (0)