Skip to content

Commit

Permalink
_get_scalar_func_loopy_program: specify that all arguments are Global…
Browse files Browse the repository at this point in the history
…Args

Fixes inducer/meshmode#237
  • Loading branch information
inducer committed Jul 21, 2023
1 parent dbc087c commit ae21a43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arraycontext/loopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def get(c_name, nargs, naxes):
var(c_name)(*[
var("inp%d" % i)[subscript] for i in range(nargs)]))
],
[
lp.GlobalArg("out", dtype=None, shape=lp.auto)] + [
lp.GlobalArg("inp%d" % i, dtype=None, shape=lp.auto)
for i in range(nargs)] + [...],
name="actx_special_%s" % c_name,
tags=(ElementwiseMapKernelTag(),))

Expand Down

0 comments on commit ae21a43

Please sign in to comment.