Skip to content
Snippets Groups Projects
Commit a96f3fed authored by Matthias Diener's avatar Matthias Diener
Browse files

check that all subary are cl.Arrays

parent e8450810
No related branches found
No related tags found
Loading
...@@ -190,7 +190,8 @@ class BaseFakeNumpyLinalgNamespace: ...@@ -190,7 +190,8 @@ class BaseFakeNumpyLinalgNamespace:
# mimics numpy's norm computation # mimics numpy's norm computation
return self.norm(_flatten_cl_array(ary), ord=2) return self.norm(_flatten_cl_array(ary), ord=2)
if _is_meshmode_dofarray(ary): if (_is_meshmode_dofarray(ary) and all([_is_pyopencl_array(subary)
for _, subary in serialize_container(ary)])):
from arraycontext.impl import _flatten_cl_array from arraycontext.impl import _flatten_cl_array
from warnings import warn from warnings import warn
......
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