Skip to content

Commit 21cba5a

Browse files
committed
Hashing kernel key to ensure closures recompile if necessary
1 parent a5aca48 commit 21cba5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

warp/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,7 @@ def hash_recursive(module, visited):
14471447

14481448
# kernel source
14491449
for kernel in module.kernels.values():
1450+
ch.update(bytes(kernel.key, "utf-8"))
14501451
ch.update(bytes(kernel.adj.source, "utf-8"))
14511452
# cache kernel arg types
14521453
for arg, arg_type in kernel.adj.arg_types.items():

0 commit comments

Comments
 (0)