Re: SMP - dual/triple/?? processor programming

Tech-Archive recommends: Fix windows errors by optimizing your registry



Having now dual processors and soon more, does anyone know how i can
turn a simple program for example having a loop and doing some
calculations to take advantage of all the processing units available?

If you are looking for some kind of semi-automatic solution, read about
OpenMP:

http://msdn.microsoft.com/msdnmag/issues/05/10/OpenMP/

Apart from that, the biggest gains can be had if you can develop your
algorithms so that you can divide a problem in separate tasks, and then
start multiple threads, based on how much CPUs there are in the system.
Of course, this only works if your problem is of a nature that allows it to
be split.

--

Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"


.



Relevant Pages