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

Add APIs to copy data to and from device to cudf::detail::host_vector #16931

Closed

Conversation

vuule
Copy link
Contributor

@vuule vuule commented Sep 26, 2024

Description

Current utilities for D2H/H2D copying do not cover well the case where data is transferred between an existing cudf::detail::host_vector and an existing device memory. To potentially avoid copy engine use, the caller needs to know if the host_vector in question actually uses pinned memory. This makes the code very verbose and dependent on host_vector implementation details.

This PR adds APIs to copy the content of a host_vector to the given device memory location.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vuule vuule added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 26, 2024
@vuule vuule self-assigned this Sep 26, 2024
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Sep 26, 2024
@vuule vuule marked this pull request as ready for review September 26, 2024 22:44
@vuule vuule requested a review from a team as a code owner September 26, 2024 22:44
@vuule vuule requested review from harrism and mhaseeb123 September 26, 2024 22:44
@vuule vuule marked this pull request as draft September 26, 2024 22:54
@vuule
Copy link
Contributor Author

vuule commented Sep 27, 2024

Decided to take a different approach, opened #16945 with a more general API

@vuule vuule closed this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant