Opened 4 years ago

Last modified 4 years ago

#1708 confirmed enhancement

Add autoconf detection for #pragma omp simd

Reported by: Erik Schnetter Owned by:
Priority: minor Milestone:
Component: Cactus Version: development version
Keywords: Cc:


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.

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by Frank Löffler

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

comment:2 Changed 4 years ago by Erik Schnetter

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".

comment:3 Changed 4 years ago by Ian Hinder

Priority: majorminor
Status: newconfirmed

Is this currently used in the ET?

comment:4 Changed 4 years ago by Erik Schnetter

Not any more, since it doesn't always work. We can't use it without such an autoconf test. Hence this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
as confirmed The ticket will remain with no owner.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from (none) to the specified user.
The owner will be changed from (none) to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.