MCPcopy Create free account
hub / github.com/apache/arrow / RegisterDeviceMapper

Function RegisterDeviceMapper

cpp/src/arrow/device.cc:349–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347} // namespace
348
349Status RegisterDeviceMapper(DeviceAllocationType device_type, DeviceMapper mapper) {
350 auto registry = GetDeviceRegistry();
351 return registry->RegisterDevice(device_type, std::move(mapper));
352}
353
354Result<DeviceMapper> GetDeviceMapper(DeviceAllocationType device_type) {
355 auto registry = GetDeviceRegistry();

Callers 2

TESTFunction · 0.85

Calls 2

GetDeviceRegistryFunction · 0.85
RegisterDeviceMethod · 0.80

Tested by 1

TESTFunction · 0.68