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 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

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.


Melden Sie sich an, um einen Kommentar zu hinterlassen.