llvm / llvm/llvm-project

[flang][openmp] performance regression with 371.applu331 omp2012 benchmark when -mmlir --enable-delayed-privatization is enabled

Open
#173,476 0 comments 0 reactions 0 assignees View on GitHub
flang:openmp
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

I see around 2x performance regression when -mmlir --enable-delayed-privatization is enabled. The runtime is 90 seconds by default and when this option is disabled (-mmlir --enable-delayed-privatization=false) runtime reduces to 40 seconds.

individually, the file rhs.fppized.f90 seem to cause this performance difference.

Tried with latest sources and this issue is still there.

Contributor guide

Open the contributing guide

Research direction

Reproduce the regression with the 371.applu331 omp2012 benchmark using -mmlir --enable-delayed-privatization and its false setting, then isolate the effect attributed to rhs.fppized.f90. Compare the compiler behavior and runtime results to determine where delayed privatization causes the slowdown. Done means the regression is explained and the benchmark no longer shows the reported performance gap.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
compilers, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.