Please consider a macro to indicate OpenMP SIMD support

OpenMP 5.0 will be the next version of the OpenMP specification, which we expect will be officially released in 2018. This technical report is an up-to-date draft of the 5.0 specs for public discussion.
Locked
nemequ
Posts: 1
Joined: Tue Nov 28, 2017 9:56 am

Please consider a macro to indicate OpenMP SIMD support

Post by nemequ »

Some compilers support enabling OpenMP's SIMD support without enabling full OpenMP support; GCC using -fopenmp-simd, ICC using -openmp-simd, possibly others. In this situation, _OPENMP is not defined (nor should it be), and as far as I am aware there is currently no way for compilers to indicate that OpenMP SIMD is available without signalling that the entire specification is supported.

I would love to see an _OPENMP_SIMD macro (or something else, I'm not going to get hung up on the name) which would work just like the existing _OPENMP macro (defined to the appropriate value for whatever version of the standard is supported), but only convey information about the omp simd pragma as opposed to the entire specification.

MichaelKlemm
Posts: 3
Joined: Mon Oct 04, 2010 8:52 am

Re: Please consider a macro to indicate OpenMP SIMD support

Post by MichaelKlemm »

Hi,

thanks for suggestion. I have forwarded the feedback to the language committee for discussion.

Kind regards,
-michael

Locked