From d1d7722cfc5ee130115d8d195068a98b16102a21 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 8 Apr 2020 14:10:15 +0100 Subject: COMPMID-3314: Enable OpenMP in the reference tests Change-Id: I05b5fedb998317144e0dd13a6377a97207b27f46 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3024 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- tests/validation/reference/BatchNormalizationLayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/validation/reference/BatchNormalizationLayer.cpp') diff --git a/tests/validation/reference/BatchNormalizationLayer.cpp b/tests/validation/reference/BatchNormalizationLayer.cpp index 37713c841d..6623b22e78 100644 --- a/tests/validation/reference/BatchNormalizationLayer.cpp +++ b/tests/validation/reference/BatchNormalizationLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -46,7 +46,9 @@ SimpleTensor batch_normalization_layer(const SimpleTensor &src, const Simp const auto rows = static_cast(src.shape()[1]); const auto depth = static_cast(src.shape()[2]); const int upper_dims = src.shape().total_size() / (cols * rows * depth); - +#if defined(_OPENMP) + #pragma omp parallel for schedule(dynamic, 1) collapse(4) +#endif /* _OPENMP */ for(int r = 0; r < upper_dims; ++r) { for(int i = 0; i < depth; ++i) -- cgit v1.2.1