[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Use of dual CPU?



On Mon, 2005-05-23 at 10:34 +0200, Marco Calviani wrote:
> Miquel van Smoorenburg ha scritto:
> 
> > You cannot run one program on two CPUs. It's simply not possible.
> >
> >What you can do is split your program up into multiple programs
> >or threads, that you can run simultaneously - in that case, you
> >will use more than one CPU. But you need to redesign/rewrite
> >your programs, ofcourse.
> >
> >Mike.
> >
> >
> >  
> >
> Well thanks very much for this clarification. I thought it was possible 
> to tell the compiler to do that by itsel.

it is. how well it will do so will depend on your initial code (eg is
there anything it CAN do in parallel?) and the compiler (eg can it spot
what can be done in parallel)?

pls note that it is possible for a parallel program on 2 CPUs to go
slower than on 1. 

and don't forget that, under the right circumstances, you can run
instance#1 on one CPU and instance#another on another CPU (for diff I/O
files)....

there's plenty of books out there on this...

-- 
Michael Bane
Atmospheric Physics Group
University of Manchester



Reply to: