-
Notifications
You must be signed in to change notification settings - Fork 916
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
Use make_host_vector
instead of make_std_vector
to facilitate pinned memory optimizations
#16386
Use make_host_vector
instead of make_std_vector
to facilitate pinned memory optimizations
#16386
Conversation
@@ -1991,14 +1991,14 @@ encoder_decimal_info decimal_chunk_sizes(orc_table_view& orc_table, | |||
return src[rg_bounds[idx][col_idx].end - 1]; | |||
}); | |||
|
|||
rg_sizes[col_idx] = cudf::detail::make_std_vector_async(d_tmp_rowgroup_sizes, stream); | |||
rg_sizes.emplace(col_idx, cudf::detail::make_host_vector_async(d_tmp_rowgroup_sizes, stream)); |
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 is the only way to add elements to a map when the value type is not default-constructible.
/ok to test |
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.
One question -
is_str_column_all_nulls = cudf::detail::make_std_vector_sync( | ||
is_all_nulls_each_column(input, d_column_tree, tree, col_ids, options, stream), stream); | ||
} | ||
auto const is_str_column_all_nulls = [&, &column_tree = d_column_tree]() { |
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 is a neat change!
/merge |
Description
Replaced most of
make_std_vector
calls withmake_host_vector
to allow pinned memory and kernel copies, when enabled.Skipped places where the change would impact the public API.
Checklist