From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,44f61e894593879c X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-09 11:16:05 PST Path: swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!ames!newsfeed.gsfc.nasa.gov!gtpitch!jmasino From: jmasino@gtpitch.gsfc.nasa.gov (Jay Masino) Newsgroups: comp.unix.osf.osf1 Subject: Re: Parallel Processing -- FAQ? Date: 9 Feb 1995 19:03:11 GMT Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Message-ID: <3hdotf$dlc@post.gsfc.nasa.gov> References: <3hdghs$1hn@news.cs.tulane.edu> NNTP-Posting-Host: gtpitch.gsfc.nasa.gov X-Newsreader: TIN [version 1.2 PL2] Dr. Andrew E. Pollard (pollard@tatanka.bmen.tulane.edu) wrote: : Hello: : We have a dual processor Alpha, but I can't figure out how to: : 1. determine the processor I'm running my job on : 2. compile a FORTRAN code to run across both processors : I looked for the FAQ for this newgroup because I thought I might : find this information in that source, but I could not find the FAQ. : Could someone point me to the right places in either the bookreader or : the man pages for parallel prosessing? : Thanks in advance ... Andy Pollard In order to get a program to take advantage of your 2 CPUs, you'll have to use "threads". This is a way to create different threads of execution that can be scheduled on the different CPUs. This is sort-of like forking separate processes from within your code, but these "threads" are all under the same PID. If you don't break your code into multiple threads, you'll always run on a single CPU. In fact, OSF/1's scheduler schedules threads, not processes. Look up "pthreads" (Posix threads) in the man pages or bookreader. --- Jay _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Jay Masino '67 Piper Cherokee, N4269J _/ _/ Loral AeroSys at CSC/GreenTec IV Fly Hershey Bar Pipers! _/ _/ Office:(301)794-2595 FAX:(301)794-7208 __!__ _/ _/ E-mail: Jay.Masino@gsfc.nasa.gov _____(_)_____ _/ _/ jmasino@gtpitch.gsfc.nasa.gov ! ! ! _/ _/ _/ _/ #include /* My opinions are not NASA's */ _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/