Skip to content
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

Remove cudf._lib.null_mask in favor of inlining pylibcudf #17440

Merged
merged 6 commits into from
Nov 27, 2024

Conversation

mroeschke
Copy link
Contributor

Description

Contributes to #17317

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 25, 2024
@mroeschke mroeschke self-assigned this Nov 25, 2024
@mroeschke mroeschke requested a review from a team as a code owner November 25, 2024 20:03
@github-actions github-actions bot added the CMake CMake build issue label Nov 25, 2024
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestions to avoid a bitmask_or.

Comment on lines 1108 to 1111
with acquire_spill_lock():
_, has_null_group = plc.null_mask.bitmask_or(
[col.to_pylibcudf(mode="read") for col in index._columns]
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, this can be computed without a kernel, because the columns know their null count, so this is equivalent to:

has_null_group = any(col.has_nulls() for col in index._columns)

@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 6e91f09 into rapidsai:branch-25.02 Nov 27, 2024
105 checks passed
@mroeschke mroeschke deleted the cudf/_lib/null_mask branch November 27, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants