[llvm] [offload] Add floating-point support detection queries (PR #193233)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 04:05:33 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `offload` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --cmake-file=AMDGPULibcBot.cmake' (failure)
...
[923/956] Linking CXX static library /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib/libruntimes_gtest.a
[924/956] Linking CXX static library /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib/libruntimes_gtest_main.a
[925/956] Linking CXX shared library openmp/tools/omptest/libomptest.so
[926/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o
[927/956] Building CXX object offload/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o
[928/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/Mapping.cpp.o
[929/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/LegacyAPI.cpp.o
[930/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
[931/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/GlobalHandler.cpp.o
[932/956] Building CXX object offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o
FAILED: offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o 
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DDEBUG_PREFIX="\"TARGET AMDGPU RTL\"" -DOMPT_SUPPORT=1 -DTARGET_NAME=AMDGPU -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/llvm/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/openmp/runtime/src -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/common/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/utils -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/dynamic_hsa -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/plugins-nextgen/common/../../liboffload/API -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -fPIC -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -Werror=global-constructors -MD -MT offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -MF offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o.d -o offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp:3342:33: error: use of undeclared identifier 'ol_bool_t'
 3342 |     Info.add("Half FP Support", ol_bool_t(false), "",
      |                                 ^~~~~~~~~
1 error generated.
[933/956] Building CXX object offload/plugins-nextgen/host/CMakeFiles/omptarget.rtl.host.dir/src/rtl.cpp.o
[934/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RecordReplay.cpp.o
[935/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/interface.cpp.o
[936/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/API.cpp.o
[937/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/device.cpp.o
[938/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OffloadRTL.cpp.o
[939/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/PluginManager.cpp.o
[940/956] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o
[941/956] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadImpl.cpp.o
[942/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
[943/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/PluginInterface.cpp.o
[944/956] Building CXX object offload/plugins-nextgen/cuda/CMakeFiles/omptarget.rtl.cuda.dir/src/rtl.cpp.o
[945/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o
[946/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/JIT.cpp.o
ninja: build stopped: subcommand failed.
[4991/4994] Completed 'runtimes-amdgcn-amd-amdhsa'
FAILED: runtimes/runtimes-stamps/runtimes-build /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
Step 7 (build cmake config) failure: build cmake config (failure)
...
[923/956] Linking CXX static library /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib/libruntimes_gtest.a
[924/956] Linking CXX static library /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib/libruntimes_gtest_main.a
[925/956] Linking CXX shared library openmp/tools/omptest/libomptest.so
[926/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o
[927/956] Building CXX object offload/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o
[928/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/Mapping.cpp.o
[929/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/LegacyAPI.cpp.o
[930/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
[931/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/GlobalHandler.cpp.o
[932/956] Building CXX object offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o
FAILED: offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o 
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DDEBUG_PREFIX="\"TARGET AMDGPU RTL\"" -DOMPT_SUPPORT=1 -DTARGET_NAME=AMDGPU -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/llvm/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/openmp/runtime/src -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/common/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/utils -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/dynamic_hsa -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/plugins-nextgen/common/../../liboffload/API -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins/offload/include -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/include -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -fPIC -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -Werror=global-constructors -MD -MT offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -MF offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o.d -o offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp:3342:33: error: use of undeclared identifier 'ol_bool_t'
 3342 |     Info.add("Half FP Support", ol_bool_t(false), "",
      |                                 ^~~~~~~~~
1 error generated.
[933/956] Building CXX object offload/plugins-nextgen/host/CMakeFiles/omptarget.rtl.host.dir/src/rtl.cpp.o
[934/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RecordReplay.cpp.o
[935/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/interface.cpp.o
[936/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/API.cpp.o
[937/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/device.cpp.o
[938/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OffloadRTL.cpp.o
[939/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/PluginManager.cpp.o
[940/956] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o
[941/956] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadImpl.cpp.o
[942/956] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
[943/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/PluginInterface.cpp.o
[944/956] Building CXX object offload/plugins-nextgen/cuda/CMakeFiles/omptarget.rtl.cuda.dir/src/rtl.cpp.o
[945/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o
[946/956] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/JIT.cpp.o
ninja: build stopped: subcommand failed.
[4991/4994] Completed 'runtimes-amdgcn-amd-amdhsa'
FAILED: runtimes/runtimes-stamps/runtimes-build /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.

```

</details>

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


More information about the llvm-commits mailing list