Page 1 of 1

Please consider a macro to indicate OpenMP SIMD support

PostPosted: Tue Feb 20, 2018 3:02 pm
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.

Re: Please consider a macro to indicate OpenMP SIMD support

PostPosted: Wed Feb 21, 2018 12:30 am
by MichaelKlemm
Hi,

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

Kind regards,
-michael