[Issue]: [Flang][OpenMP] wrong result with BLOCK in target region
Opened this issue · 1 comments
ye-luo commented
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 commented
Reported to llvm upstream
llvm#116509