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

[WIP] Release buffers in separeted executor after it is processed #708

Closed
wants to merge 1 commit into from

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Mar 28, 2019

This fixes Separated Executor error:
Mixed stage was releasing CPU outputs (marking them as free),
but they might still be in use as Mixed can work in
asynchronous manner on a stream.
Now we release all the output buffers (as free) from the stages
only when we know all the processing was finished and data was
consumed properly.

This release can be done as soon as we synchronize
GPU for ShareOutputs call.

Another possible solution is to put a callback on a stream
that will release the buffers as soon as they are consumed

Signed-off-by: Krzysztof Lecki klecki@nvidia.com

This fixes Separated Executor error:
Mixed stage was releasing CPU outputs (marking them as free),
but they might still be in use as Mixed can work in
asynchronous manner on a stream.
Now we release all the output buffers (as free) from the stages
only when we know all the processing was finished and data was
consumed properly.

This release can be done as soon as we synchronize
GPU for ShareOutputs call.

Another possible solution is to put a callback on a stream
that will release the buffers as soon as they are consumed

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Apr 2, 2019

#712 will be used.

@klecki klecki closed this Apr 2, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant