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

Merge branch 'adjust-ltemp-fix-scalars' into 'master'

OpenCL: do not attempt to mess with storage shape of scalars

See merge request inducer/loopy!213
parents 51083fe0 78a8472a
Branches 120-implementation-issue-with-alignment
No related tags found
No related merge requests found
......@@ -61,6 +61,11 @@ def adjust_local_temp_var_storage(kernel, device):
temp_var.copy(storage_shape=temp_var.shape)
continue
if not temp_var.shape:
# scalar, no need to mess with storage shape
new_temp_vars[temp_var.name] = temp_var
continue
other_loctemp_nbytes = [
tv.nbytes
for tv in six.itervalues(kernel.temporary_variables)
......
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