felipecrv commented on code in PR #43795:
URL: https://github.com/apache/arrow/pull/43795#discussion_r1733345466
##########
cpp/src/arrow/chunked_array.h:
##########
@@ -182,6 +182,9 @@ class ARROW_EXPORT ChunkedArray {
/// \return Status
Status ValidateFull() const;
+ /// \brief Determine if all chunks are located on the CPU
+ bool IsCpu() const;
Review Comment:
Exactly.
But with my PR we might calculate the device set on the constructor then
this becomes a cheap check on the pre-calculated device set. So feel free to
name it `is_cpu()` even though it's doing a loop.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]