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.
Please consider a macro to indicate OpenMP SIMD support
-
- Posts: 3
- Joined: Mon Oct 04, 2010 8:52 am
Re: Please consider a macro to indicate OpenMP SIMD support
Hi,
thanks for suggestion. I have forwarded the feedback to the language committee for discussion.
Kind regards,
-michael
thanks for suggestion. I have forwarded the feedback to the language committee for discussion.
Kind regards,
-michael