-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[MINOR] Route leftover temps through local temp_mr
#23730
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
Changes from 1 commit
327bbd9
27b9887
586870c
12da70b
e27879a
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 |
|---|---|---|
|
|
@@ -410,8 +410,6 @@ TYPED_TEST(FixedWidthColumnWrapperTest, NullablePairListConstructorAllNullMatch) | |
| this->resources()); | ||
| cudf::column_view view = col; | ||
|
|
||
| // TODO: has_nonempty_nulls (via count_if/transform_reduce) still allocates temporaries from the | ||
| // current device resource for strings columns. | ||
|
Comment on lines
-413
to
-414
Contributor
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. So does this mean we can now add
Contributor
Author
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. Yes, fixed width types should work without a problem. Strings and lists were the problematic types.
Contributor
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. Ok, so let's add the assertion here to give the test some teeth? |
||
| CUDF_TEST_EXPECT_COLUMNS_EQUAL(view, | ||
| match_view, | ||
| cudf::test::debug_output_level::FIRST_ERROR, | ||
|
|
@@ -517,8 +515,9 @@ TYPED_TEST(StringsColumnWrapperTest, NullablePairListConstructorAllNullMatch) | |
| this->resources()); | ||
| cudf::column_view view = col; | ||
|
|
||
| // TODO: has_nonempty_nulls (via count_if/transform_reduce) still allocates temporaries from the | ||
| // current device resource for strings columns. | ||
| // TODO: check_non_empty_nulls (via has_nonempty_nulls) still allocates temporaries from the | ||
|
Contributor
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. Your original phrasing pointed at The above brings up another minor inaccuracy in my earlier suggested wording: simply accepting a memory resource in
Contributor
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. Sorry, the actual requests might've gotten lost in the above wall of text. Should we (a) add a TODO in |
||
| // current device resource for string columns. Once it accepts a memory resource, guard this | ||
| // comparison with fail_on_current_device_resource_use(). | ||
| CUDF_TEST_EXPECT_COLUMNS_EQUAL(view, | ||
| match_view, | ||
| cudf::test::debug_output_level::FIRST_ERROR, | ||
|
|
||
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.
[Optional] Should this also use
temp_mr, like you did withd_resultingroup_nunique? Or would this wait untilsorted_dense_rankgets a memory resource parameter?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.
dense_rank_sortedis the output isnt it? So, it should ideally be set with the output MR, which we will do once therank.cuis ported tomemory_resourcesThere 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.
It's the return value of this (helper) function, but the output (of
rank) isrank_column(line 265). This is aconstscratch key vector (see the comment in lines 286-287). So usingtemp_mrhere is correct, unless I'm missing something.