Commit c20e06d5 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

varrayMinMaxSum: added omp simd.

parent 69b17d00
Pipeline #2478 failed with stages
in 13 minutes and 53 seconds
......@@ -79,6 +79,9 @@ varrayMinMaxSum(const size_t len, const Varray<T> &array, MinMaxSum mms)
T rmax = mms.max;
auto rsum = mms.sum;
#ifdef HAVE_OPENMP4
#pragma omp simd reduction(min:rmin) reduction(max:rmax) reduction(+:rsum)
#endif
for (size_t i = 0; i < len; ++i)
{
const auto v = array[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment