diff options
Diffstat (limited to 'tests/validation/reference/Im2Col.cpp')
-rw-r--r-- | tests/validation/reference/Im2Col.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/validation/reference/Im2Col.cpp b/tests/validation/reference/Im2Col.cpp index 4b41cdb70b..a3dcf07273 100644 --- a/tests/validation/reference/Im2Col.cpp +++ b/tests/validation/reference/Im2Col.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -109,7 +109,9 @@ void im2col_nhwc(const SimpleTensor<T> &src, SimpleTensor<T> &dst, const Size2D // Compute width and height of the convolved tensors std::pair<unsigned int, unsigned int> convolved_dims = scaled_dimensions(src_width, src_height, kernel_dims.width, kernel_dims.height, conv_info); - +#if defined(_OPENMP) + #pragma omp parallel for schedule(dynamic, 1) collapse(2) +#endif /* _OPENMP */ for(int b = 0; b < batches; ++b) { for(int yo = 0; yo < dst_height; ++yo) |