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

Method OtherGpuDevice

cpp/src/arrow/gpu/cuda_test.cc:110–116  ·  view source on GitHub ↗

Returns nullptr if kOtherGpuNumber does not correspond to an installed GPU

Source from the content-addressed store, hash-verified

108
109 // Returns nullptr if kOtherGpuNumber does not correspond to an installed GPU
110 Result<std::shared_ptr<CudaDevice>> OtherGpuDevice() {
111 auto maybe_device = CudaDevice::Make(kOtherGpuNumber);
112 if (maybe_device.status().IsInvalid()) {
113 return nullptr;
114 }
115 return maybe_device;
116 }
117
118 protected:
119 CudaDeviceManager* manager_;

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
statusMethod · 0.45

Tested by

no test coverage detected