Skip to content
Snippets Groups Projects
Commit c646c0f5 authored by Andreas Kloeckner's avatar Andreas Kloeckner
Browse files

Minor constant-fold for CL meta example.

parent a9a54af6
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,8 @@ mod = Module([
for name in ["tgt", "op1", "op2"]]))),
Block([
Initializer(POD(numpy.int32, "idx"),
"get_local_id(0) + %d * %d * get_group_id(0)"
% (local_size, thread_strides))
"get_local_id(0) + %d * get_group_id(0)"
% (local_size*thread_strides))
]+[
Assign(
"tgt[idx+%d]" % (o*local_size),
......
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