From f3889beb638ae6db77b800c8d122c564cd4d2b81 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 24 Apr 2013 13:26:51 -0400 Subject: [PATCH] Minor hello-world example tweak. --- examples/hello-loopy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello-loopy.py b/examples/hello-loopy.py index 3cb600d90..629a6e6d0 100644 --- a/examples/hello-loopy.py +++ b/examples/hello-loopy.py @@ -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), ]) -- GitLab