Add autoconf detection for #pragma omp simd

Issue #1708 open
Erik Schnetter created an issue

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)

  1. Frank Löffler
    • removed comment

    Do compilers that don't support these pragmas choke on them? Shouldn't they simply ignore them?

  2. Erik Schnetter 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".

  3. Erik Schnetter 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.

  4. Log in to comment