Changes

Jump to: navigation, search

GPU621/Distributed Workload

48 bytes removed, 03:59, 3 December 2018
no edit summary
}
</pre>
 
== Comparison ==
Both libraries use C++ templates to provide generic programming structures. The libraries do overlap when it comes to the functionality they provide, however STL is designed to be more general use and TBB specializes on parallel programming with threads. <br />
* map
'''TBB''' does not implement as many containers however it does include some that are useful in parallel programming and extends their functionality.
* blocked_range<T>
* concurrent_hash_map<T>
* cuncurrent_vector<T>
* concurrent_queue<T>
 
==== Algorithms ====
Some serial algorithms exist for STL that can preform tasks such like searching and sorting. These functions are typically used to operate on the containers like <code>std::merge()</code> and <code>std::sort()</code> <br />
}
</pre>
Some things to notice about this code are as follows. All of the reduce operations are done in the overloaded () operator. The <code>join()</code> and <code>Sum(Sum& s, split)</code> split constructor are needed to split the <code>blocked_range</code> , run the operations in parallel then join the results.
24
edits

Navigation menu