-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Route dictionary encode temp allocations through memory_resources
#23642
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
Changes from 1 commit
6d7b2ea
9195029
b295e98
de6706b
916a57f
904bb3c
edee970
f2fd7f6
7127990
c180e92
11c4a86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,13 +37,13 @@ namespace dictionary::detail { | |
| * @param column The column to dictionary encode. | ||
| * @param indices_type The integer type to use for the indices. | ||
| * @param stream CUDA stream used for device memory operations and kernel launches. | ||
| * @param mr Device memory resource used to allocate the returned column's device memory. | ||
| * @param mr Memory resources used for temporary allocations and the returned column. | ||
| * @return Returns a dictionary column. | ||
| */ | ||
| std::unique_ptr<column> encode(column_view const& column, | ||
| data_type indices_type, | ||
| cuda::stream_ref stream, | ||
| rmm::device_async_resource_ref mr); | ||
| cudf::memory_resources mr); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems odd that the include statements did not change for this.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @davidwendt I am not sure I understood you.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We changed namespace from |
||
|
|
||
| /** | ||
| * @brief Create a column by gathering the keys from the provided | ||
|
|
@@ -57,12 +57,12 @@ std::unique_ptr<column> encode(column_view const& column, | |
| * | ||
| * @param dictionary_column Existing dictionary column. | ||
| * @param stream CUDA stream used for device memory operations and kernel launches. | ||
| * @param mr Device memory resource used to allocate the returned column's device memory. | ||
| * @param mr Memory resources used for temporary allocations and the returned column. | ||
| * @return New column with type matching the dictionary_column's keys. | ||
| */ | ||
| std::unique_ptr<column> decode(dictionary_column_view const& dictionary_column, | ||
| cuda::stream_ref stream, | ||
| rmm::device_async_resource_ref mr); | ||
| cudf::memory_resources mr); | ||
|
|
||
| /** | ||
| * @brief Return minimal integer type for the given number of elements. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.