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

Method MakeDevice

cpp/src/arrow/gpu/cuda_context.cc:583–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581
582 protected:
583 Result<std::shared_ptr<CudaDevice>> MakeDevice(int device_number) {
584 DeviceProperties props;
585 RETURN_NOT_OK(props.Init(device_number));
586 return std::shared_ptr<CudaDevice>(new CudaDevice({std::move(props)}));
587 }
588
589 private:
590 int num_devices_;

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected