Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Parallel Processing -- FAQ?
@ 1995-02-09 16:40 Dr. Andrew E. Pollard
  1995-02-09 19:03 ` Jay Masino
  1995-02-10 18:16 ` Steve Lionel
  0 siblings, 2 replies; 3+ messages in thread
From: Dr. Andrew E. Pollard @ 1995-02-09 16:40 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Parallel Processing -- FAQ?
  1995-02-09 16:40 Parallel Processing -- FAQ? Dr. Andrew E. Pollard
@ 1995-02-09 19:03 ` Jay Masino
  1995-02-10 18:16 ` Steve Lionel
  1 sibling, 0 replies; 3+ messages in thread
From: Jay Masino @ 1995-02-09 19:03 UTC (permalink / raw)


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 <std_disclaimer.h>       /* My opinions are not NASA's */ _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Parallel Processing -- FAQ?
  1995-02-09 16:40 Parallel Processing -- FAQ? Dr. Andrew E. Pollard
  1995-02-09 19:03 ` Jay Masino
@ 1995-02-10 18:16 ` Steve Lionel
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Lionel @ 1995-02-10 18:16 UTC (permalink / raw)



In article <3hdghs$1hn@news.cs.tulane.edu>, pollard@tatanka.bmen.tulane.edu
(Dr. Andrew E. Pollard) writes:

|>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

DEC Fortran does not have built-in parallel processing support.  This is
provided by an optional product, KAP for DEC Fortran V2.0.  KAP will
examine your program for loops which can be safely run in parallel and
distribute them across an SMP system.

As another writer mentioned, you could also do your own manual decomposition
using the Posix threads package.
--

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For a summary of Digital's Internet services, send mail to info@digital.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-02-10 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-09 16:40 Parallel Processing -- FAQ? Dr. Andrew E. Pollard
1995-02-09 19:03 ` Jay Masino
1995-02-10 18:16 ` Steve Lionel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox