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

POSIX IO: use async memcpy #374

Merged
merged 7 commits into from
May 7, 2024

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Apr 29, 2024

Closes #311

@madsbk madsbk added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Apr 29, 2024
@madsbk madsbk force-pushed the posix_use_stream branch from 909ffd7 to f83475e Compare April 29, 2024 08:16
@madsbk madsbk marked this pull request as ready for review April 30, 2024 12:27
@madsbk madsbk requested a review from a team as a code owner April 30, 2024 12:27
{
for (auto& [_, stream] : _streams) {
try {
CUDA_DRIVER_TRY(cudaAPI::instance().StreamDestroy(stream));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this segfault when destroying the singleton? We had to let the libcudf stream pool "leak" to avoid this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not on my workstation or in CI. Maybe it is because we are using a newer CTK. Do you have a link to the libcudf issue?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh. I can't repro the crash now.
I don't think we had an issue open.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking

@madsbk
Copy link
Member Author

madsbk commented May 7, 2024

/merge

@rapids-bot rapids-bot bot merged commit 8081fbb into rapidsai:branch-24.06 May 7, 2024
35 checks passed
@madsbk madsbk deleted the posix_use_stream branch July 25, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use async cuMemcpy APIs instead of synchronous ones
2 participants