[flang-commits] [flang] [Flang][OpenMP] Implement OMP 5.2 implicit DECLARE TARGET procedure handling (PR #196826)
via flang-commits
flang-commits at lists.llvm.org
Sun May 10 11:43:56 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 4256 tests passed
* 205 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Semantics/OpenMP/declare-target-implicit-proc.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
"/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_symbols.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/declare-target-implicit-proc.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=52
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_symbols.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/declare-target-implicit-proc.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=52
# .---command stdout------------
# | ---Expected_output
# |
# | +++Actual_output
# |
# | @@-1,14+1,21@@
# |
# | -programtest_implicit_declare_target
# | +!DEF:/TEST_IMPLICIT_DECLARE_TARGETMainProgram
# | +programTEST_IMPLICIT_DECLARE_TARGET
# | +!DEF:/TEST_IMPLICIT_DECLARE_TARGET/nObjectEntityINTEGER(4)
# | integer::n=10
# | -!DEF:/test_implicit_declare_target/ext_sub(Subroutine)EXTERNALProcEntity
# | !$ompdeclaretarget(ext_sub)
# | !$omptarget
# | -!REF:/test_implicit_declare_target/ext_sub
# | +!DEF:/TEST_IMPLICIT_DECLARE_TARGET/ext_subEXTERNAL(Subroutine,OmpDeclareTarget)ProcEntity
# | +!REF:/TEST_IMPLICIT_DECLARE_TARGET/n
# | callext_sub(n)
# | !$ompendtarget
# | endprogram
# | +!DEF:/ext_sub(Subroutine)Subprogram
# | +!DEF:/ext_sub/xINTENT(IN)ObjectEntityINTEGER(4)
# | subroutineext_sub(x)
# | !$ompdeclaretarget
# | +!REF:/ext_sub/x
# | integer,intent(in)::x
# | +!REF:/ext_sub/x
# | print*,"Calledwith:",x
# | endsubroutine
# | +
# |
# | FAIL
# `-----------------------------
# .---command stderr------------
# | warning: OpenMP support for version 52 in flang is still incomplete
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Semantics/OpenMP/declare-target02.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
"/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_errors.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/declare-target02.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=52
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_errors.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/declare-target02.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=52
# .---command stdout------------
# | ---
# | +++
# | @@ -7 +6,0 @@
# |
# | actual at 38: 'blk1_link' must be a variable@@ -41 +39,0 @@
# |
# | actual at 158: 'blk4_link' must be a variable
# |
# | FAIL
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/196826
More information about the flang-commits
mailing list