diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py index 7d4f09f07bba5f603b9e407dd210c0049bb5f0aa..739a92231300e18ac16581d17994e95c39f88183 100644 --- a/arraycontext/impl/pytato.py +++ b/arraycontext/impl/pytato.py @@ -308,8 +308,9 @@ class PytatoExecutable: for pos, arg in enumerate(args): if isinstance(arg, np.number): + input_kwargs_to_loopy[self.input_id_to_name_in_program[(pos,)]] = ( - arg) + cla.to_device(self.actx.queue, np.array(arg))) elif is_array_container(arg): def _extract_lpy_kwargs(keys, ary): if isinstance(ary, pt.array.DataWrapper):