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

Function CreateDeviceRegistry

cpp/src/arrow/device.cc:333–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333static std::unique_ptr<DeviceMapperRegistryImpl> CreateDeviceRegistry() {
334 auto registry = std::make_unique<DeviceMapperRegistryImpl>();
335
336 // Always register the CPU device
337 DCHECK_OK(registry->RegisterDevice(DeviceAllocationType::kCPU, DefaultCPUDeviceMapper));
338
339 return registry;
340}
341
342DeviceMapperRegistryImpl* GetDeviceRegistry() {
343 static auto g_registry = CreateDeviceRegistry();

Callers 1

GetDeviceRegistryFunction · 0.85

Calls 1

RegisterDeviceMethod · 0.80

Tested by

no test coverage detected