Skip to content

[C++] Create registry for Devices to map DeviceType to MemoryManager in C Device Data import #40698

@jorisvandenbossche

Description

@jorisvandenbossche

Describe the enhancement requested

Follow-up on #39980 (comment)

Right now, the user of ImportDeviceArray or ImportDeviceRecordBatch needs to provide a DeviceMemoryMapper mapping the device type and id to a MemoryManager. We provide a default implementation of that mapper that just knows about the default CPU memory manager (and there is another implementation in arrow::cuda, but you need to explicitly pass that to the import function)

To make this easier, the suggestion was to create a registry such that default device mappers can be added separately.

Component(s)

C++

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions