[flang-commits] [flang] [flang][cuda] Convert data transfer between scalar and arrays (PR #110180)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Mon Sep 30 10:33:29 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `flang` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
68.847 [157/3/7054] Linking CXX shared library lib/libclang-cpp.so.20.0git
68.856 [156/3/7055] Creating library symlink lib/libclang-cpp.so
71.119 [156/2/7056] Linking CXX shared library lib/libFortranSemantics.so.20.0git
71.128 [155/2/7057] Creating library symlink lib/libFortranSemantics.so
71.273 [150/6/7058] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
71.285 [150/5/7059] Linking CXX executable tools/flang/unittests/Evaluate/real.test
71.286 [150/4/7060] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
71.426 [150/3/7061] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
71.483 [150/2/7062] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
82.785 [150/1/7063] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o
FAILED: tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o 
/usr/local/bin/c++ -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/flang/lib/Optimizer/Transforms -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/lib/Optimizer/Transforms -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/../mlir/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/mlir/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/clang/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/../clang/include -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o -MF tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o.d -o tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CufOpConversion.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/lib/Optimizer/Transforms/CufOpConversion.cpp
../llvm-project/flang/lib/Optimizer/Transforms/CufOpConversion.cpp:378:16: error: variable 'mode' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
  378 |     } else if (op.getTransferKind() == cuf::DataTransferKind::DeviceDevice) {
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../llvm-project/flang/lib/Optimizer/Transforms/CufOpConversion.cpp:387:66: note: uninitialized use occurs here
  387 |         builder.createIntegerConstant(loc, builder.getI32Type(), mode);
      |                                                                  ^~~~
../llvm-project/flang/lib/Optimizer/Transforms/CufOpConversion.cpp:378:12: note: remove the 'if' if its condition is always true
  378 |     } else if (op.getTransferKind() == cuf::DataTransferKind::DeviceDevice) {
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../llvm-project/flang/lib/Optimizer/Transforms/CufOpConversion.cpp:373:18: note: initialize the variable 'mode' to silence this warning
  373 |     unsigned mode;
      |                  ^
      |                   = 0
1 error generated.
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the flang-commits mailing list