#1708: Add autoconf detection for #pragma omp simd -------------------------+-------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Keywords: | -------------------------+-------------------------------------------------- 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.
#1708: Add autoconf detection for #pragma omp simd --------------------------+------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by knarf):
Do compilers that don't support these pragmas choke on them? Shouldn't they simply ignore them?
#1708: Add autoconf detection for #pragma omp simd --------------------------+------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by eschnett):
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".
#1708: Add autoconf detection for #pragma omp simd --------------------------+------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: confirmed Priority: minor | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by hinder):
* priority: major => minor * status: new => confirmed
Comment:
Is this currently used in the ET?
#1708: Add autoconf detection for #pragma omp simd --------------------------+------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: confirmed Priority: minor | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by eschnett):
Not any more, since it doesn't always work. We can't use it without such an autoconf test. Hence this ticket.
trac@lists.einsteintoolkit.org