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
Mark stage buffers as consumed with stream callback #712
Conversation
if (HasPreviousStage(stage)) { | ||
ReleaseStageIdx(PreviousStage(stage), idxs); | ||
} | ||
// TODO(klecki) when we move to CUDA 10, we should move to cudaLaunchHostFunc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe ifdef for CUDA 10? We have CUDA 10 already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API is described as to be deprecated in some future, but is still available in both CUDA 9 and 10. Maybe it is better to not have build dependent code paths until we actually need to.
Build 692185. |
Rebased on #699, to reduce the CI workload. |
1073488
to
b6523f5
Compare
Proper changes only in last commit, rest is #699 |
This fixes an issue of marking CPU buffers as free before they are consumed by async GPU kernels of Mixed stage (simialr thing for Support stage). Short circuit ReleaseIdx for invalid idxs Introduce kInvalidIdx in queue policy Check if indexes are valid before processing Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Build 693777 |
This fixes an issue of marking CPU buffers as free before they are consumed by async GPU kernels of Mixed stage (simialr thing for Support stage). Short circuit ReleaseIdx for invalid idxs Introduce kInvalidIdx in queue policy Check if indexes are valid before processing.
This fixes an issue of marking CPU buffers as free
before they are consumed by async GPU kernels
of Mixed stage (simialr thing for Support stage).
Alternative to #708.
Signed-off-by: Krzysztof Lecki klecki@nvidia.com