Re: SMP - dual/triple/?? processor programming
- From: "Bruno van Dooren [MVP VC++]" <bruno_nos_pam_van_dooren@xxxxxxxxxxx>
- Date: Wed, 1 Nov 2006 22:13:56 +0100
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"
.
- References:
- Re: SMP - dual/triple/?? processor programming
- From: Igor Tandetnik
- Re: SMP - dual/triple/?? processor programming
- Prev by Date: Re: Getting exception object
- Next by Date: Re: Component object size and vector.resize() in MS VC 2003
- Previous by thread: Re: SMP - dual/triple/?? processor programming
- Next by thread: Re: SMP - dual/triple/?? processor programming
- Index(es):
Relevant Pages
|