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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx27.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:32.0) Gecko/20100101 Thunderbird/32.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: "The Machine" and Ada (blog post) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sun, 13 Jul 2014 19:05:44 UTC Organization: TeraNews.com Date: Sun, 13 Jul 2014 13:05:43 -0600 X-Received-Bytes: 1559 X-Received-Body-CRC: 3232720521 Xref: news.eternal-september.org comp.lang.ada:20919 Date: 2014-07-13T13:05:43-06:00 List-Id: On 13-Jul-14 09:29, Dan'l Miller wrote: > To which existing pragma are you referring? It wouldn't *need* to be a pre-existing pragma. Implementation-defined pragmas [and aspects] are allowed for just this reason. e.g. Imagine an Ada compiler targeting CPU + CUDA. Task type K is Entry Do_something( Data : in Integer ); Entry Get_Result ( Data : out Integer ); End K with Target_Processor => GPU; could be used to signify the task is to be run on one of the GPU cores; the nice thing about this is that it would still be compilable [and runnable] w/o the CUDA targeting... though it may raise a unrecognized pragma/aspect when compiled.