diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index bc9035b302d760979fddfc41ec8ec83edd0ceae2..df04cfc46190fc45222754e83503d83289c7f230 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -149,9 +149,15 @@ struct ScaleLossGradOpHandle : public OpHandle { auto stream = static_cast(this->dev_ctx_[place_]) ->stream(); + VLOG(3) << "1"; + PADDLE_ENFORCE(cudaGetLastError()); + VLOG(3) << "2"; memory::Copy(boost::get(place_), tmp, platform::CPUPlace(), &coeff_, sizeof(float), stream); + PADDLE_ENFORCE(cudaGetLastError()); + VLOG(3) << "3"; PADDLE_ENFORCE(cudaEventRecord(ev_, stream)); + VLOG(3) << "4"; } }