Skip to content

[FEA] Function to "pack" a table into a single buffer #3793

Closed
@jrhemstad

Description

@jrhemstad

Is your feature request related to a problem? Please describe.

I would like to be able to create a copy of a table_view where the storage for the constituent column is "packed" into a single allocation.

Describe the solution you'd like

An API something like this:

std::pair<rmm::device_buffer, table_view> pack(table_view const& t);

Where the returned device_buffer contains a copy of the contents of t in a single allocation and the returned table_view points into that buffer.

Additional context

This functionality is effectively already developed for contiguous_split in the alloc_and_copy function. The ask is just to wrap and expose this as a public API.

Metadata

Metadata

Assignees

Labels

feature requestNew feature or requestlibcudfAffects libcudf (C++/CUDA) code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions