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

Function AsCudaDevice

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

Source from the content-addressed store, hash-verified

302}
303
304Result<std::shared_ptr<CudaDevice>> AsCudaDevice(const std::shared_ptr<Device>& device) {
305 if (IsCudaDevice(*device)) {
306 return checked_pointer_cast<CudaDevice>(device);
307 } else {
308 return Status::TypeError("Device is not a Cuda device: ", device->ToString());
309 }
310}
311
312Status CudaDevice::Stream::WaitEvent(const Device::SyncEvent& event) {
313 auto cuda_event =

Callers

nothing calls this directly

Calls 3

IsCudaDeviceFunction · 0.85
TypeErrorFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected