diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation/reference/ConvolutionLayer.cpp | 3 | ||||
-rw-r--r-- | tests/validation/reference/GEMM.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/validation/reference/ConvolutionLayer.cpp b/tests/validation/reference/ConvolutionLayer.cpp index aed976e5ee..9675901542 100644 --- a/tests/validation/reference/ConvolutionLayer.cpp +++ b/tests/validation/reference/ConvolutionLayer.cpp @@ -69,7 +69,8 @@ SimpleTensor<T> convolution_layer_nchw(const SimpleTensor<T> &src, const SimpleT const int end_xi = output_wh.first * stride_xi; const int end_yi = output_wh.second * stride_yi; const int num_batches = src.shape().total_size() / (width_in * height_in * depth_in); -#if defined(_OPENMP) + +#if defined(_OPENMP) && !( defined(__arm__) && defined(__ANDROID__)) #pragma omp parallel for collapse(5) #endif /* _OPENMP */ for(int r = 0; r < num_batches; ++r) diff --git a/tests/validation/reference/GEMM.cpp b/tests/validation/reference/GEMM.cpp index 20def87a64..63c7f53b48 100644 --- a/tests/validation/reference/GEMM.cpp +++ b/tests/validation/reference/GEMM.cpp @@ -56,7 +56,7 @@ SimpleTensor<T> gemm(const SimpleTensor<T> &a, const SimpleTensor<T> &b, const S const int c_stride_z = N * M; const int c_stride_w = N * M * D; -#if defined(_OPENMP) +#if defined(_OPENMP) && !( defined(__arm__) && defined(__ANDROID__)) #pragma omp parallel for collapse(2) #endif /* _OPENMP */ for(int w = 0; w < W; ++w) |