Skip to content

Commit

Permalink
Update python/cudf/cudf/core/udf/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Wang <[email protected]>
  • Loading branch information
brandon-b-miller and isVoid authored Jan 27, 2022
1 parent 2415a98 commit 643d55e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/cudf/cudf/core/udf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def _construct_signature(frame, return_type, args):

@cuda.jit(device=True)
def _mask_get(mask, pos):
"""Return the validity of mask[pos] as a word."""
return (mask[pos // MASK_BITSIZE] >> (pos % MASK_BITSIZE)) & 1


Expand Down

0 comments on commit 643d55e

Please sign in to comment.