Skip to content

Commit

Permalink
Ensure that the invoker name is an identifier
Browse files Browse the repository at this point in the history
Closes gh-777
  • Loading branch information
inducer committed Aug 23, 2024
1 parent 8c83e00 commit 233440b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyopencl/invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def gen_arg_setting(in_enqueue):

# {{{ generate _enqueue

enqueue_name = "enqueue_knl_%s" % function_name
from pytools import to_identifier
enqueue_name = f"enqueue_knl_{to_identifier(function_name)}"
gen("def %s(%s):"
% (enqueue_name,
", ".join([
Expand Down

0 comments on commit 233440b

Please sign in to comment.