[Openmp-commits] [PATCH] D30450: OpenMP version 5.0 added

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 1 06:00:15 PST 2017


AndreyChurbanov added a comment.

In https://reviews.llvm.org/D30450#689458, @Hahnfeld wrote:

> In https://reviews.llvm.org/D30450#689455, @omalyshe wrote:
>
> > In https://reviews.llvm.org/D30450#688282, @Hahnfeld wrote:
> >
> > > Do we really need this? In other words: Is there a use case for not building the OpenMP runtime for the latest standard?
> >
> >
> > For example, if it is supposed to use the runtime library with the compiler which does not support the latest standard.
>
>
> The code for the older standards seems to always be backwards compatible and compiling for newer versions only add additional entry points or features, no?


(1) We had examples of changed semantics of omp_in_parallel() API from OpenMP 2.0 --> 2.5.  Recent incompatibility of OpenMP 4.0 and 4.5 is probably pure compiler related, but anyway, codes written for OpenMP 4.0 don't work for OpenMP 4.5 (because of changed implicit data sharing attribute of scalars in the target construct).
(2) It can be worthwhile to be able to build library for various OpenMP versions support, e.g. for matching the version supported by compiler the library is built for. It looks inelegant and confusing for customers when compiler and library declare different supported versions.

Just my 2 cents.


Repository:
  rL LLVM

https://reviews.llvm.org/D30450





More information about the Openmp-commits mailing list