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

Function DefaultCUDADeviceMapper

cpp/src/arrow/gpu/cuda_memory.cc:501–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499namespace {
500
501Result<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
507bool RegisterCUDADeviceInternal() {
508 DCHECK_OK(RegisterDeviceMapper(DeviceAllocationType::kCUDA, DefaultCUDADeviceMapper));

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected