From 997e9a1fd2a98120a269b7569fccd7f1e595059b Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 2 Apr 2018 13:53:21 +0800 Subject: [PATCH] fix mac compile --- paddle/fluid/framework/details/var_handle.h | 2 +- paddle/fluid/framework/parallel_executor.cc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/details/var_handle.h b/paddle/fluid/framework/details/var_handle.h index 893cc15f6c8..569dda17c6e 100644 --- a/paddle/fluid/framework/details/var_handle.h +++ b/paddle/fluid/framework/details/var_handle.h @@ -22,7 +22,7 @@ namespace paddle { namespace framework { namespace details { -struct OpHandleBase; +class OpHandleBase; // VarHandleBase is the var node in the dependency graph. // A variable can only be generated by a single operator. i.e. diff --git a/paddle/fluid/framework/parallel_executor.cc b/paddle/fluid/framework/parallel_executor.cc index 91f2db9354c..292e4732b44 100644 --- a/paddle/fluid/framework/parallel_executor.cc +++ b/paddle/fluid/framework/parallel_executor.cc @@ -13,9 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. */ #include "paddle/fluid/framework/parallel_executor.h" + #include +#include -#include "ThreadPool.h" +#include "paddle/fluid/framework/threadpool.h" #ifdef PADDLE_WITH_CUDA #include "paddle/fluid/platform/nccl_helper.h" -- GitLab