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

[Issue]: [Flang][OpenMP] wrong result with BLOCK in target region #208

Open
ye-luo opened this issue Nov 16, 2024 · 1 comment
Open

[Issue]: [Flang][OpenMP] wrong result with BLOCK in target region #208

ye-luo opened this issue Nov 16, 2024 · 1 comment
Labels

Comments

@ye-luo
Copy link

ye-luo commented Nov 16, 2024

Problem Description

I'm testing rocm-afar-6356-drop-4.1.0
Getting incorrect results. see reproducers below.

Operating System

ubuntu 24.04

CPU

Any x86_64

GPU

Any AMD GPU

ROCm Version

ROCm 6.2.3

ROCm Component

No response

Steps to Reproduce

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

yeluo@epyc-server:~/opt/openmp-target/tests/private$ amdflang -fopenmp target_local_block.f90 && ./a.out
 collect_a expected 20, now =  10
Fortran STOP: code 1

yeluo@epyc-server:~/opt/openmp-target/tests/private$ amdflang -fopenmp --offload-arch=gfx906 target_local_block.f90 && ./a.out
 collect_a expected 20, now =  10
Fortran STOP: code 1

IEEE arithmetic exceptions signaled: INEXACT

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@ye-luo
Copy link
Author

ye-luo commented Nov 16, 2024

Reported to llvm upstream
llvm#116509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants