This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 611bf3bcb6 Fix: Change variable i to x in split operation in
cross_compilation_and_rpc.py (#17743)
611bf3bcb6 is described below
commit 611bf3bcb6001c78f1144b34eac274b40a97131c
Author: DavidKo <[email protected]>
AuthorDate: Thu Mar 13 14:15:21 2025 -0400
Fix: Change variable i to x in split operation in
cross_compilation_and_rpc.py (#17743)
Co-authored-by: David Ko <[email protected]>
---
docs/how_to/tutorials/cross_compilation_and_rpc.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/how_to/tutorials/cross_compilation_and_rpc.py
b/docs/how_to/tutorials/cross_compilation_and_rpc.py
index 159acc1eb0..a6b7206b3e 100644
--- a/docs/how_to/tutorials/cross_compilation_and_rpc.py
+++ b/docs/how_to/tutorials/cross_compilation_and_rpc.py
@@ -234,9 +234,9 @@ def run_opencl():
mod = tvm.IRModule.from_expr(te.create_prim_func([A, B]))
sch = tvm.tir.Schedule(mod)
(x,) = sch.get_loops(block=sch.get_block("B"))
- xo, xi = sch.split(i, [None, 32])
- sch.bind(x, "blockIdx.x")
- sch.bind(x, "threadIdx.x")
+ xo, xi = sch.split(x, [None, 32])
+ sch.bind(xo, "blockIdx.x")
+ sch.bind(xi, "threadIdx.x")
func = tvm.compile(sch.mod, target=target)
remote = rpc.connect(opencl_device_host, opencl_device_port)