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

Re: Use of dual CPU?



On Mon, 2005-05-23 at 09:30 +0200, Marco Calviani wrote:
> Adam Mercer ha scritto:
> 
> >On 23/05/05, Marco Calviani <mirtux@studenti.fisica.unifi.it> wrote:
> >  
> >
> >>So, normally, even if i use an SMP kernel if i'm not telling the program
> >>to use both CPU it will continue using only one CPU, right?
> >>    
> >>
> >
> >Yes, if the program isn't written to use both CPUs, it won't.
> >
> >Cheers
> >
> >Adam
> >  
> >
> Do you know if it is possible to instruct the g77 (fortran) compiler to 
> use both CPU's, or maybe where to ask for?

i would have thought the answer is in 'man g77' - look for OpenMP or
threads. You may also wish to look up 'mpich' in an Internet search
engine. 

so, "yes" you can get your programs to use both CPUs - how well they do
so is yet another issue.

if you're asking about op sys tasks on >1 CPUs pls start a  new thread

Michael



Reply to: