Array of Reducers - Possible in C?

Array of Reducers - Possible in C?

I was wondering if it is possible to create an array of reducers in C?

I already read the documentation, but they use always only one reducer. However, how do I use Cilk reducers for an array with int or double values? Can you give  me a short example?

Thanks in advance.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Some of the more recent posts on the forum have discussed array reducers in C++.  I don't know how easy it would be to do that in C though.
The simplest solution for creating an array reducer in C might be to creating a wrapper for a C++ library that is callable from C code?
Unfortunately, depending on the size of your array, having an array of reducers may not necessarily give you good performance.


Leave a Comment

Please sign in to add a comment. Not a member? Join today