From 8a01221c63fc0485dc40a8eb6f0cb869dc453770 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Tue, 3 Jul 2018 17:42:44 +0800 Subject: [PATCH] format files --- src/operators/math/pooling.cpp | 3 ++- test/common/test_openmp.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/operators/math/pooling.cpp b/src/operators/math/pooling.cpp index a8f6c77170..5aa77c0826 100644 --- a/src/operators/math/pooling.cpp +++ b/src/operators/math/pooling.cpp @@ -57,7 +57,8 @@ class PoolFunctor { T *output_data = output->mutable_data(); for (int i = 0; i < batch_size; i++) { - // #pragma omp parallel for + // + // #pragma omp parallel for for (int c = 0; c < output_channels; ++c) { for (int ph = 0; ph < output_height; ++ph) { int hstart = ph * stride_height - padding_height; diff --git a/test/common/test_openmp.cpp b/test/common/test_openmp.cpp index b9a112b5f0..dbc91d1e1b 100644 --- a/test/common/test_openmp.cpp +++ b/test/common/test_openmp.cpp @@ -17,7 +17,8 @@ limitations under the License. */ int main(void) { #ifdef PADDLE_MOBILE_USE_OPENMP - // #pragma omp parallel num_threads(2) + // // + // #pragma omp parallel num_threads(2) { // int thread_id = omp_get_thread_num(); // int nthreads = omp_get_num_threads(); -- GitLab