From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Ada and OpenMP
Date: Fri, 8 Mar 2013 08:52:44 -0800 (PST)
Date: 2013-03-08T08:52:44-08:00 [thread overview]
Message-ID: <9e0bbbdf-ccfa-4d4c-90af-2d56d46242b3@googlegroups.com> (raw)
In-Reply-To: <khbmmp$fd5$1@munin.nbi.dk>
On Thursday, March 7, 2013 8:42:15 PM UTC-7, Randy Brukardt wrote:
>
> In order for that to be the case, the pragma would have to make various
> constructs illegal in the loop and in the surrounding code (exception
> handlers, any code where one iteration of the loop depends on the next,
> erroneous use of shared variables). But a pragma shouldn't be changing the
> legality rules of the language. (And it's not clear this would really fix
> the problem.)
Why would that have to change the semantics of the program: since there would have to be a non-implementation-defined code-generation method (for when the pragma was off) the compiler should just use that if those constructs are used.
It limits the usefulness, yes; but there's no reason to assume that it should cause erroneous execution. -- I suppose that in early versions of playing w/ an experimental version there might be some because of some case that was overlooked. -- Though this does seem to bring us back to the idea of exceptions (and how to indicate/assert to the compiler that none, or a limited set, can be raised).
>
>
>
> Alternatively, the parallel version could simply be erroneous if any of
>
> those things happened. But that means you have no idea what will happen, and
>
> you've introduced new forms of erroneousness (meaning that there is no
>
> chance that the pragma would ever be standardized).
>
>
>
> Ada is about doing things right, and that should be true even for
>
> implementation-defined stuff. And we *need* people to figure out good ways
>
> of doing these things (for instance, a "parallel" classification for
>
> functions would be very helpful). The sloppy way helps little.
>
>
>
> Randy "No New Pragmas" Brukardt
next prev parent reply other threads:[~2013-03-08 16:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 18:04 Ada and OpenMP Rego, P.
2013-03-07 20:04 ` Ludovic Brenta
2013-03-07 22:22 ` Peter C. Chapin
2013-03-07 23:42 ` Randy Brukardt
2013-03-08 0:39 ` Peter C. Chapin
2013-03-08 3:31 ` Randy Brukardt
2013-03-08 7:17 ` Simon Wright
2013-03-08 23:40 ` Randy Brukardt
2013-03-08 12:07 ` Peter C. Chapin
2013-03-08 14:40 ` Rego, P.
2013-03-08 1:15 ` Shark8
2013-03-08 3:42 ` Randy Brukardt
2013-03-08 14:53 ` Rego, P.
2013-03-08 15:47 ` Georg Bauhaus
2013-03-08 23:40 ` Randy Brukardt
2013-03-08 16:52 ` Shark8 [this message]
2013-03-08 23:36 ` Randy Brukardt
2013-03-09 4:13 ` Brad Moore
2013-03-10 4:24 ` Randy Brukardt
2013-03-08 7:37 ` Simon Wright
2013-03-10 18:00 ` Waldek Hebisch
2013-03-07 23:43 ` Georg Bauhaus
2013-03-08 10:18 ` Georg Bauhaus
2013-03-08 14:24 ` Rego, P.
2013-03-07 22:52 ` Simon Wright
2013-03-08 21:37 ` Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox