- removed comment
Add autoconf detection for #pragma omp simd
Issue #1708
open
This pragma simd-vectorizes a loop. It is part of OpenMP 4.0. Unfortunately, not all compilers support it. We need to add an autoconf rule.
Keyword:
Comments (4)
-
-
reporter - removed comment
It's "#pragma omp simd", so it's an OpenMP pragma. Compilers recognize the "omp", but the don't recognize the "simd" -- fatal error.
Some compilers support "#pragma simd", but not all; e.g. Clang understands "#pragma omp simd", but ignores "#pragma simd".
-
- changed status to open
- marked as
- removed comment
Is this currently used in the ET?
-
reporter - removed comment
Not any more, since it doesn't always work. We can't use it without such an autoconf test. Hence this ticket.
- Log in to comment
Do compilers that don't support these pragmas choke on them? Shouldn't they simply ignore them?