Skip to content
Snippets Groups Projects
Commit f3889beb authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Minor hello-world example tweak.

parent 3f728ca4
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ knl = lp.make_kernel(ctx.devices[0],
"{[i]: 0<=i<n}", # "loop domain"-- what values does i take?
"out[i] = 2*a[i]", # "instructions" to be executed across the domain
[ # argument declarations
lp.GlobalArg("out", np.float32, shape=("n",)),
lp.GlobalArg("a", np.float32, shape=("n",)),
lp.GlobalArg("out", np.float32, shape="n"),
lp.GlobalArg("a", np.float32, shape="n"),
lp.ValueArg("n", np.int32),
])
......
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