[flang-commits] [flang] [flang][cuda][openacc] Emit an error when CUDA symbols are imported with CUDA disabled (PR #205207)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 22 15:55:51 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 4358 tests passed
* 250 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Flang
<details>
<summary>Flang.Semantics/modfile84.f90</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
split-file C:\_work\llvm-project\llvm-project\flang\test\Semantics\modfile84.f90 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\flang\test\Semantics\modfile84.f90' 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\23\finclude\flang\x86_64-pc-windows-msvc -fsyntax-only -x cuda -module-dir C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp/m.cuf
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 '-fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\23\finclude\flang\x86_64-pc-windows-msvc' -fsyntax-only -x cuda -module-dir 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp' 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp/m.cuf'
# note: command had no output on stdout or stderr
# RUN: at line 3
not c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\23\finclude\flang\x86_64-pc-windows-msvc -fsyntax-only -fopenacc -module-dir C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp/use.f90 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Semantics\modfile84.f90
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 '-fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\23\finclude\flang\x86_64-pc-windows-msvc' -fsyntax-only -fopenacc -module-dir 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp' 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Semantics\Output\modfile84.f90.tmp/use.f90'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Semantics\modfile84.f90'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Semantics\modfile84.f90
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/205207


More information about the flang-commits mailing list