-
Notifications
You must be signed in to change notification settings - Fork 915
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 offsetalator in cudf::strings::copy_slice #14844
Use offsetalator in cudf::strings::copy_slice #14844
Conversation
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.
Looks good!
input_offsets, | ||
input_offsets + offsets_column->size(), | ||
d_offsets, | ||
cuda::proclaim_return_type<int64_t>( |
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.
Do you think we should declare something like size_type
that would be a proper type name for all the int64_t
s that are being sprinkled around? It's pretty subtle in some cases, like the 0L
literal written above. I would want to reduce the possibility of unwanted casting (like forgetting to write 0L
instead of 0
) by having a type name with clear intent.
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.
I do not wish to create a special type at this time and prefer not to obfuscate int64_t
in this code.
/merge |
Description
Replace hardcoded offset types with offsetalator in
cudf::strings::detail::copy_slice
.Checklist