From 10393dd0d16e57203b8cb039174cff97b6efbc89 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Mon, 25 Feb 2019 10:09:25 +0800 Subject: [PATCH] add some check test=develop --- paddle/fluid/framework/parallel_executor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index cfd6609a4b1..82367736725 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -217,6 +217,11 @@ ParallelExecutor::ParallelExecutor( } } + if (build_strategy.async_mode_) { + PADDLE_ENFORCE(!member_->use_cuda_, + "gpu mode does not support async_mode_ now!"); + } + // FIXME(Yancey1989): parallel graph mode get better performance // in GPU allreduce distributed training. Need an elegant way to // choice the execution strategy. -- GitLab