diff --git a/arraycontext/impl/pytato/compile.py b/arraycontext/impl/pytato/compile.py index 6ebe0f234ce575342ce7be65ca649eba0940ac41..302dc659f2c34cb18931f5c98acf9f18970a0302 100644 --- a/arraycontext/impl/pytato/compile.py +++ b/arraycontext/impl/pytato/compile.py @@ -298,7 +298,9 @@ class CompiledFunction: evt, out_dict = self.pytato_program(queue=self.actx.queue, allocator=self.actx.allocator, **input_kwargs_to_loopy) - + # FIXME Kernels (for now) allocate tons of memory in temporaries. If we + # race too far ahead with enqueuing, there is a distinct risk of + # running out of memory. This mitigates that risk a bit, for now. evt.wait() # }}}