Skip to content
Snippets Groups Projects
Commit b1eacb5e authored by Matt Wala's avatar Matt Wala
Browse files

Add test.

parent b4783e9c
No related branches found
No related tags found
No related merge requests found
......@@ -2231,6 +2231,29 @@ def test_struct_assignment(ctx_factory):
knl(queue, N=200)
def test_inames_conditional_generation(ctx_factory):
ctx = ctx_factory()
knl = lp.make_kernel(
"{[i,j,k]: 0 < k < i and 0 < j < 10 and 0 < i < 10}",
"""
for k
... gbarrier
<>tmp1 = 0
end
for j
... gbarrier
<>tmp2 = i
end
""",
"...",
seq_dependencies=True)
knl = lp.tag_inames(knl, dict(i="g.0"))
with cl.CommandQueue(ctx) as queue:
knl(queue)
if __name__ == "__main__":
if len(sys.argv) > 1:
exec(sys.argv[1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment