MCPcopy Create free account
hub / github.com/boostorg/compute / ParallelSum

Function ParallelSum

perf/perf_tbb_accumulate.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template<class T>
42T ParallelSum( T array[], size_t n ) {
43 Sum<T> total;
44 tbb::parallel_reduce( tbb::blocked_range<T*>( array, array+n ),
45 total );
46 return total.value;
47}
48
49int main(int argc, char *argv[])
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected