[flang-commits] [flang] [flang][cuda] Do not generate NVVM target attribute when creating the module (PR #116882)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Tue Nov 19 19:16:05 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `flang` at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/15171

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Flang :: Fir/CUDA/cuda-implicit-device-global.f90' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: fir-opt --split-input-file --cuf-device-global /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90
+ fir-opt --split-input-file --cuf-device-global /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90
/build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90:104:17: error: CHECK-LABEL: expected string not found in input
// CHECK-LABEL: gpu.module @cuda_device_mod [#nvvm.target]
                ^
<stdin>:38:29: note: scanning from here
 gpu.module @cuda_device_mod {
                            ^
<stdin>:86:2: note: possible intended match here
 gpu.module @cuda_device_mod {
 ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Fir/CUDA/cuda-implicit-device-global.f90

-dump-input=help explains the following input dump.

Input was:
<<<<<<
             .
             .
             .
            33:  func.func private @_FortranAioBeginExternalListOutput(i32, !fir.ref<i8>, i32) -> !fir.ref<i8> attributes {fir.io, fir.runtime} 
            34:  fir.global linkonce @_QQclX6995815537abaf90e86ce166af128f3a constant : !fir.char<1,32> { 
            35:  %0 = fir.string_lit "cuda-implicit-device-global.fir\00"(32) : !fir.char<1,32> 
            36:  fir.has_value %0 : !fir.char<1,32> 
            37:  } 
            38:  gpu.module @cuda_device_mod { 
label:104'0                                 X~~ error: no match found
            39:  } 
label:104'0     ~~~
            40: } 
label:104'0     ~~
            41:  
label:104'0     ~
            42: // ----- 
label:104'0     ~~~~~~~~~
            43: module attributes {gpu.container_module} { 
label:104'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             .
             .
             .
            81:  func.func private @_FortranAioOutputAscii(!fir.ref<i8>, !fir.ref<i8>, i64) -> i1 attributes {fir.io, fir.runtime} 
label:104'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

```

</details>

https://github.com/llvm/llvm-project/pull/116882


More information about the flang-commits mailing list