Skip to content
Snippets Groups Projects
Commit 5935dea8 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni
Browse files

explains the reason for flushing the queue after every compiled kernel launch

parent 7ec975bc
No related branches found
No related tags found
No related merge requests found
......@@ -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()
# }}}
......
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