Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory pools and multiple queues: missing synchronization #447

Open
inducer opened this issue Mar 19, 2021 · 2 comments
Open

Memory pools and multiple queues: missing synchronization #447

inducer opened this issue Mar 19, 2021 · 2 comments

Comments

@inducer
Copy link
Owner

inducer commented Mar 19, 2021

Suppose I run kernels in multiple queues, using memory pools to allocate output buffers for both. Currently, nothing is preventing a buffer from being returned to the pool before all kernels are done reading/writing it. Once it's in the pool, kernels from the other queues might pick up that buffer and overwrite it, with no synchronization to ensure that kernels from the first queue are done with it.

cc @VincentWells

@inducer inducer changed the title Memory pools and queues may interact poorly Memory pools and multiple queues: missing synchronization Mar 19, 2021
@inducer
Copy link
Owner Author

inducer commented Mar 19, 2021

This is a similar problem to #449. The approach proposed there can probably be reused here.

@inducer
Copy link
Owner Author

inducer commented Mar 19, 2021

(We could declare this the user's problem to solve, but that feels fairly un-pyopencl'ish to me.)

@inducer inducer mentioned this issue Jun 27, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant