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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5164ccc41905b2d0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.24.132 with SMTP id u4mr3026866wif.6.1363060919656; Mon, 11 Mar 2013 21:01:59 -0700 (PDT) Path: bp2ni87015wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!xlned.com!feeder1.xlned.com!feed.xsnews.nl!border-3.ams.xsnews.nl!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail User-Agent: NewsTap/3.5.5 (iPad) From: Georg Bauhaus Newsgroups: comp.lang.ada Mime-Version: 1.0 Message-ID: <932708405384391902.448869rm-host.bauhaus-maps.arcor.de@news.arcor.de> Subject: Re: Ada and OpenMP References: <87k3pjht79.fsf@ludovic-brenta.org> Date: 07 Mar 2013 23:43:47 GMT Organization: Arcor NNTP-Posting-Date: 08 Mar 2013 00:43:47 CET NNTP-Posting-Host: 8e327143.newsspool3.arcor-online.net X-Trace: DXC=nS0VU`AMVoeg`45cDR8l?oMcF=Q^Z^V3h4Fo<]lROoRa8kFejVhloTj_RoVFJe;1Q>j4kQZQg X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2013-03-08T00:43:47+01:00 List-Id: "Peter C. Chapin" wrote: > OpenMP is a different animal than Ada tasks. It provides fine grained > parallelism where, for example, it is possible to have the compiler > automatically parallelize a loop. In C: > > #pragma omp parallel for > for( i = 0; i < MAX; ++i ) { > array[i]++; > } Fortunately, OpenMP is no longer needed to achieve automatic parallelism in either C or Ada at the low level. GCC's vectorizer produces code that runs in parallel for a number of loop patterns. These are documented, and they work in GNAT GPL or more recent FSF GNATs. Later 4.7s IIRC. The higher level constructs added to OpenMP 3 do have a lot in common with Ada tasking, if I have understood some slides correctly. How could it be otherwise?