comp.lang.ada
 help / color / mirror / Atom feed
From: quiggle@triada2.mti.sgi.com (Tom Quiggle)
Subject: Re: multiprocessing with gnat
Date: 1997/03/20
Date: 1997-03-20T00:00:00+00:00	[thread overview]
Message-ID: <5gq35a$4qg@chronicle.mti.sgi.com> (raw)
In-Reply-To: 5git7c$29ji@info4.rus.uni-stuttgart.de



In article <5git7c$29ji@info4.rus.uni-stuttgart.de>, ica2ph@alpha1.csv.ica.uni-stuttgart.de writes:
> Gerald.Kasner@Physik.Uni-Magdeburg.de wrote:
> : How can I build a program that uses multiple processors ?
> : If I compile with gnatmake -O3 xxx only one is used.
> : I'm using gnat3.07 on sgi powerchallenge with 8 proc.
> : - Thanks Gerald

Are you trying to parallize the build, or the execution of the resulting
executable?  If you want to parallelize the build, use "gnatmake -jnnn"
where nnn is the number of concurrent compiles you desire (hint, try 8
on your system).  Assuming you are using the SGI Ada95 product and not
the free FTP distribution, "man gnatmake" will give you all the info you
need.

> setenv PTHREAD_SPROC_COUNT "AUTO"
> 
> ;-)
If you want to parallelize the executable, the SGI implementation will
distribute Ada tasks across multiple processors via the above mechanism.

Tom Quiggle

-- 
-- True story: Thinking I had some hideous illness like mono that was
-- draining the energy out of me, I once called in sick to my day job. It
-- turned out that I had inadvertently purchased decaf coffee and the only
-- thing wrong with me was that I hadn't gotten my daily caffeine jolt by
-- 7 AM.
-- 
--     -- Scott Adams, creater of Dilbert
--
-- Tom Quiggle             quiggle@sgi.com        Voice: (415) 933-2884
-- Silicon Graphics                               Fax:   (415) 932-2884
--               http://reality.sgi.com/quiggle




      reply	other threads:[~1997-03-20  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5fgri0$c35@java.cs.Uni-Magdeburg.DE>
1997-03-15  0:00 ` multiprocessing with gnat Robert Dewar
1997-03-17  0:00 ` Peter Hermann
1997-03-20  0:00   ` Tom Quiggle [this message]
replies disabled

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