| 489 | namespace { |
| 490 | |
| 491 | Result<std::shared_ptr<MemoryManager>> DefaultCUDADeviceMapper(int64_t device_id) { |
| 492 | ARROW_ASSIGN_OR_RAISE(auto device, |
| 493 | arrow::cuda::CudaDevice::Make(static_cast<int>(device_id))); |
| 494 | return device->default_memory_manager(); |
| 495 | } |
| 496 | |
| 497 | bool RegisterCUDADeviceInternal() { |
| 498 | DCHECK_OK(RegisterDeviceMapper(DeviceAllocationType::kCUDA, DefaultCUDADeviceMapper)); |
nothing calls this directly
no test coverage detected