Skip to content

Commit

Permalink
_get_scalar_func_loopy_program: Allow offsets in GlobalArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 24, 2023
1 parent ae21a43 commit 7ce3ea8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arraycontext/loopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ def get(c_name, nargs, naxes):
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)
lp.GlobalArg("out",
dtype=None, shape=lp.auto, offset=lp.auto)] + [
lp.GlobalArg("inp%d" % i,
dtype=None, shape=lp.auto, offset=lp.auto)
for i in range(nargs)] + [...],
name="actx_special_%s" % c_name,
tags=(ElementwiseMapKernelTag(),))
Expand Down

0 comments on commit 7ce3ea8

Please sign in to comment.