Closed ohno-fj closed 1 month ago
@llvm/issue-subscribers-openmp
Author: None (ohno-fj)
This appears to be working for me now. @ohno-fj please could you confirm
@tblah, thank you for your reply Using the latest flang-new, I could confirm that it was fixed. I close this issue.
$ flang-new --version
flang-new version 20.0.0git (https://github.com/llvm/llvm-project.git 357bd61744bb8cc2b9b07447294fa977e5758550)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /work/groups/ssoft/compiler/llvm/aarch64/main-20240902-357bd61744bb/bin
Build config: +assertions
$
$ export OMP_NUM_THREADS=2; flang-new -fopenmp taskdepend_054_2231.f90; ./a.out
OK
$
In
sibling tasks
that havetask dependence
, when anif
clause (the result is .false.) is specified for adependent task
, the execution result is incorrect.The result is correct when line 27 of the program is changed as follows:
scalar-logical-expression
result specified inif
clause from .false. to .true.if
clauseThe following are the test program, Flang-new, Gfortran and ifort compilation/execution result.
taskdepend_054_2231.f90: