Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
c20e06d5
Commit
c20e06d5
authored
Apr 03, 2020
by
Uwe Schulzweida
Browse files
varrayMinMaxSum: added omp simd.
parent
69b17d00
Pipeline
#2478
failed with stages
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/array.cc
View file @
c20e06d5
...
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment