-
Notifications
You must be signed in to change notification settings - Fork 22
TPCH-derived Q9 #663
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
base: main
Are you sure you want to change the base?
TPCH-derived Q9 #663
Conversation
9ca765b to
d8e9cb3
Compare
bebd8a7 to
5c24230
Compare
c12a5c8 to
1c7735c
Compare
1c7735c to
8f99472
Compare
| auto chunk = | ||
| rapidsmpf::ndsh::to_device(ctx, msg.release<rapidsmpf::streaming::TableChunk>()); | ||
| auto table = chunk.table_view(); | ||
| auto rounded = cudf::round( |
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 get a warning here when compiling:
/home/nfs/toaugspurger/gh/rapidsai/rapidsmpf/cpp/benchmarks/streaming/ndsh/q09.cpp: In function 'rapidsmpf::streaming::Node {anonymous}::sort_by(std::shared_ptr<rapidsmpf::streaming::Context>, std::shared_ptr<rapidsmpf::streaming::Channel>, std::shared_ptr<rapidsmpf::streaming::Channel>)':
/home/nfs/toaugspurger/gh/rapidsai/rapidsmpf/cpp/benchmarks/streaming/ndsh/q09.cpp:480:31: warning: 'std::unique_ptr<cudf::column> cudf::round(const column_view&, int32_t, rounding_method, rmm::cuda_stream_view, rmm::device_async_resource_ref)' is deprecated [-Wdeprecated-declarations]
480 | auto rounded = cudf::round(
| ~~~~~~~~~~~^
481 | table.column(2),
| ~~~~~~~~~~~~~~~~
482 | 2,
| ~~
483 | cudf::rounding_method::HALF_EVEN,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
484 | chunk.stream(),
| ~~~~~~~~~~~~~~~
485 | ctx->br()->device_mr()
| ~~~~~~~~~~~~~~~~~~~~~~
486 | );
| ~
In file included from /home/nfs/toaugspurger/gh/rapidsai/rapidsmpf/cpp/benchmarks/streaming/ndsh/q09.cpp:23:
/raid/toaugspurger/envs/rapidsmpf-dev/include/cudf/round.hpp:66:40: note: declared here
66 | [[deprecated]] std::unique_ptr<column> round(
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.
Maybe round_decimal is the replacement: https://docs.rapids.ai/api/libcudf/legacy/group__transformation__unaryops#gab4e78baedf16a1b627d81c07fd2032ac
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.
yes, but that needs a cast to and from which I haven't done.
I think the deprecation was a mistake but I wasn't convincing enough
| auto supplier_x_part_x_partsupp_x_lineitem_shuffled = | ||
| ctx->create_channel(); | ||
| auto orders_shuffled = ctx->create_channel(); | ||
| // TODO: |
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.
Should it be clear what the TODO is? :) Maybe configurable number of partitions?
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.
Basically yes
Now that all the pieces are in, let's start putting the examples in.