CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   MultiThreading support in OpenFOAM (http://www.cfd-online.com/Forums/openfoam-solving/58203-multithreading-support-openfoam.html)

deepsterblue September 30, 2008 15:19

Hello all, I'm attaching th
 
Hello all,
I'm attaching the sources for a general multi-threading class (using pthreads) for use with OpenFOAM. The current capability is quite minimal, but I'm welcome to suggestions on class extensions.
Basically, the class accepts functions (or static class member-functions) and issues a number of threads corresponding to a user-specified dictionary entry. With all the multi-core processors these days, I'm sure this functionality would be quite useful.
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif multiThreader.tar.gz

deepsterblue December 15, 2008 19:54

Hello again... I've made su
 
Hello again...

I've made substantial modifications to the multiThreader class to incorporate thread-pools.
The tarball also contains a brief code snippet which demonstrates use of the class. Feedback is appreciated.

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif multiThreader.tar.gz


All times are GMT -4. The time now is 17:12.