From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ed4e33f4c2b18be X-Google-Attributes: gid103376,public From: quiggle@triada2.mti.sgi.com (Tom Quiggle) Subject: Re: multiprocessing with gnat Date: 1997/03/20 Message-ID: <5gq35a$4qg@chronicle.mti.sgi.com>#1/1 X-Deja-AN: 226850037 References: <5fgri0$c35@java.cs.Uni-Magdeburg.DE> <5git7c$29ji@info4.rus.uni-stuttgart.de> Organization: Silicon Graphics, Inc. Mountain View, CA Newsgroups: comp.lang.ada Date: 1997-03-20T00:00:00+00:00 List-Id: 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