Skip to content

[FEA] Add feature to copy offset bitmask #3262

Closed

Description

@jrhemstad

Is your feature request related to a problem? Please describe.
I would like to be able to create a new bitmask by copying the bits in the range [begin,end) from an existing bitmask. This requires copying bits across shifted word boundaries.

Describe the solution you'd like

I'd like an API like:

rmm::device_buffer copy_bitmask(bitmask_type * mask, size_type begin_bit, size_type end_bit, rmm::mr::device_memory_resource* mr);

that returns a device_buffer where bit 0 is equal to bit begin_bit from the input mask.

This should go in the null_mask.hpp header.

This is already in progress in #3219.

Activity

  1. added
    feature request
    libcudf
    on Oct 31, 2019
  2. jrhemstad commented on Oct 31, 2019

    @jrhemstad
    ContributorAuthor

    @kaatish, per suggestion from @davidwendt:

    Can you also add an additional convenience API like so:

    rmm::device_buffer copy_bitmask(column_view const& column)
    

    This should automatically take care of copying only the bits in [offset(), size()).

    If the column_view is not nullable, then it should return an empty device_buffer.

  3. jrhemstad commented on Nov 1, 2019

    @jrhemstad
    ContributorAuthor

    Closed by #3219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requestlibcudf

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions