message: Add more logging for failure cases in CUDATimer
diff: @@ -74,15 +74,21 @@ float CUDATimer::GetElapsedMilliseconds() const {
  }
  bool CUDATimer::Start(CUDAStream* stream) {
  - return CUDADriver::RecordEvent(parent_->cuda_context(), start_event_,
  - stream->cuda_stream())
  - .ok();
  + port::Status status = CUDADriver::RecordEvent(
  + parent_->cuda_context(), start_event_, stream->cuda_stream());
  + if (!status.ok()) {
  + LOG(ERROR) << status;
  + }
  + return status.ok();
  }
  bool CUDATimer::Stop(CUDAStream* stream) {
  - return CUDADriver::RecordEvent(parent_->cuda_context(), stop_event_,
  - stream->cuda_stream())
  - .ok();
  + port::Status status = CUDADriver::RecordEvent(
  + parent_->cuda_context(), stop_event_, stream->cuda_stream());
  + if (!status.ok()) {
  + LOG(ERROR) << status;
  + }
  + return status.ok();
  }
  } // namespace cuda
  