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

Fix generation of (empty) launch specs in ISPC

parent a5eb463f
No related branches found
No related tags found
No related merge requests found
......@@ -163,12 +163,17 @@ class ISPCTarget(CTarget):
S("assert(programCount == %s)"
% ccm(lsize[0], PREC_COMPARISON)))
if gsize:
launch_spec = "[%s]" % ", ".join(
ccm(gs_i, PREC_NONE)
for gs_i in gsize),
else:
launch_spec = ""
wrapper_body.append(
S("launch[%s] %s(%s)"
S("launch%s %s(%s)"
% (
", ".join(
ccm(gs_i, PREC_NONE)
for gs_i in gsize),
launch_spec,
inner_name,
", ".join(arg_names)
))
......
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