Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flang][OpenMP] wrong result with BLOCK in target region #116509

Open
ye-luo opened this issue Nov 16, 2024 · 0 comments
Open

[Flang][OpenMP] wrong result with BLOCK in target region #116509

ye-luo opened this issue Nov 16, 2024 · 0 comments

Comments

@ye-luo
Copy link
Contributor

ye-luo commented Nov 16, 2024

I tested AMD downstream compiler and realized that the issue was from upstream.
flang version 20.0.0git (https://github.com/llvm/llvm-project.git 5a5502b)

Got wrong results regardless of enabling offload or not.

Code https://github.com/ye-luo/openmp-target/blob/master/tests/private/target_local_block.f90

yeluo@epyc-server:~/opt/openmp-target/tests/private$ flang -fopenmp --offload-arch=gfx906 target_local_block.f90 && ./a.out
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
 collect_a expected 20, now =  10
Fortran STOP: code 1

IEEE arithmetic exceptions signaled: INEXACT
yeluo@epyc-server:~/opt/openmp-target/tests/private$ flang -fopenmp target_local_block.f90 && ./a.out
flang-20: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
 collect_a expected 20, now =  10
Fortran STOP: code 1
@github-actions github-actions bot added the flang Flang issues not falling into any other category label Nov 16, 2024
@EugeneZelenko EugeneZelenko added flang:openmp and removed flang Flang issues not falling into any other category labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants