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

Function DefaultCUDADeviceMapper

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

Source from the content-addressed store, hash-verified

489namespace {
490
491Result<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
497bool RegisterCUDADeviceInternal() {
498 DCHECK_OK(RegisterDeviceMapper(DeviceAllocationType::kCUDA, DefaultCUDADeviceMapper));

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected