| 499 | namespace { |
| 500 | |
| 501 | Result<std::shared_ptr<MemoryManager>> DefaultCUDADeviceMapper(int64_t device_id) { |
| 502 | ARROW_ASSIGN_OR_RAISE(auto device, |
| 503 | arrow::cuda::CudaDevice::Make(static_cast<int>(device_id))); |
| 504 | return device->default_memory_manager(); |
| 505 | } |
| 506 | |
| 507 | bool RegisterCUDADeviceInternal() { |
| 508 | DCHECK_OK(RegisterDeviceMapper(DeviceAllocationType::kCUDA, DefaultCUDADeviceMapper)); |
nothing calls this directly
no test coverage detected