From 742300baa8a24cea467a45cc55f63ca894b0625f Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Tue, 14 Aug 2018 15:52:31 +0800 Subject: [PATCH] fix unkown omp pragmas --- paddle/fluid/operators/fc_op.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/operators/fc_op.cc b/paddle/fluid/operators/fc_op.cc index ec8dfb659c3..099ca52c8e9 100644 --- a/paddle/fluid/operators/fc_op.cc +++ b/paddle/fluid/operators/fc_op.cc @@ -145,7 +145,9 @@ class FCOpKernel : public framework::OpKernel { if (bias) { const T* bias_data = bias->data(); +#ifdef PADDLE_WITH_MKLML #pragma omp parallel for if (FLAGS_paddle_num_threads > 1) +#endif for (int bs = 0; bs < in_dims[0]; bs++) { blas.AXPY(w_dims[1], static_cast(1), bias_data, output_data + bs * w_dims[1]); -- GitLab