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,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: William Clodius Subject: Re: should I be interested in ada? Date: 1999/02/19 Message-ID: <36CD860B.31DF@lanl.gov>#1/1 X-Deja-AN: 446103146 Content-Transfer-Encoding: 7bit References: <7a72e6$g55$1@probity.mcc.ac.uk> <36C93BB4.1429@ecs.soton.ac.uk> <7afc1o$3mi$2@plug.news.pipex.net> <7afttr$7v3$1@nnrp1.dejanews.com> <7aganu$qsc$1@plug.news.pipex.net> <7ai4rb$5vn$1@nnrp1.dejanews.com> <7aingo$orv$2@plug.news.pipex.net> <7ajl7i$e8v$1@nnrp1.dejanews.com> <7ajv17$mrf$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: Los Alamos National Lab Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-19T00:00:00+00:00 List-Id: dennison@telepath.com wrote: > > Since Fortran's parallel loops are just loops with extra semantics about what > dependencies exist between iterations, wouldn't it be possible to do the same > thing in Ada with new loop pragmas? (eg: prama No_Loop_Carried_Dependencies > (Loop_Label);) Would such a scheme render the compiler non-conformant? > In essence yes. The parallel loop forms introduce a context in which, for example, all input values are those of the variables at the start of the loop. A variable used as input may in turn depend on the loop, but that dependence must be treatable as an assignment to a temporary which is then reassigned to the variable at the end of the loop. This of course means that a given array element must be modified at most once in leagal code, but that is not the same as saying it isn't modified at all, which is what is implied by No_Loop_Carried_Dependencies. Dependencies are allowed but treated specially. -- William B. Clodius Phone: (505)-665-9370 Los Alamos Nat. Lab., NIS-2 FAX: (505)-667-3815 PO Box 1663, MS-C323 Group office: (505)-667-5776 Los Alamos, NM 87545 Email: wclodius@lanl.gov