Skip to content

[flang][OpenMP] reduction with minus operator not supported #152176

@mwetzstein

Description

@mwetzstein

Currently, reduction operations with minus are not supported and trigger

error: The minus reduction operator is deprecated since OpenMP 5.2 and is not supported in the REDUCTION clause.

Such minus reductions are currently used in various production codes, so sticking to OpenMP 5.2 and not supporting them will break such applications and require source code changes.

I request supporting the minus operator in reductions, so that flang can compile such applications out of the box without source code changes in the applications.

Here is a small reproducer which just does a simple reduction loop over one array: omp_minus_reproducer.F90.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions