-
Notifications
You must be signed in to change notification settings - Fork 920
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
Adding set_stream for column and column_buffer #12100
base: branch-23.08
Are you sure you want to change the base?
Changes from 1 commit
937b798
6434bf9
9a1c5f9
1316ff0
34fbefc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,19 @@ struct column_buffer { | |
|
||
auto& null_count() { return _null_count; } | ||
|
||
/** | ||
* @brief Sets the stream to be used for deallocation of internal buffers | ||
*/ | ||
void set_stream(rmm::cuda_stream_view stream) noexcept | ||
{ | ||
if (_strings) _strings->set_stream(stream); | ||
_data.set_stream(stream); | ||
_null_mask.set_stream(stream); | ||
for (auto& child : children) { | ||
child.set_stream(stream); | ||
} | ||
} | ||
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. Same here. Move the function definition into 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. Done 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.
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. I'm not sure how that happened. VS Code shows the file without the definition, but the local filesystem still had it. Updated via my old friend, vi. |
||
|
||
std::unique_ptr<rmm::device_uvector<string_index_pair>> _strings; | ||
rmm::device_buffer _data{}; | ||
rmm::device_buffer _null_mask{}; | ||
|
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.
Would prefer the function definition be put into
cpp/src/column/column.cu
instead of in the header.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 has changed to a templated function, but I pulled out the child functions.