| 302 | } |
| 303 | |
| 304 | Result<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 | |
| 312 | Status CudaDevice::Stream::WaitEvent(const Device::SyncEvent& event) { |
| 313 | auto cuda_event = |
nothing calls this directly
no test coverage detected