[llvm] [llvm-calc-occupancy] Add an AMDGPU occupancy calculator tool (PR #208727)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 2 09:52:18 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/21810
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
364.689 [25/36/6527] Generating ../../bin/llvm-dlltool
365.613 [25/35/6528] Linking CXX executable bin/llvm-profgen
366.764 [25/34/6529] Linking CXX executable bin/llvm-objdump
366.871 [24/34/6530] Generating ../../bin/llvm-otool
370.314 [24/33/6531] Linking CXX executable bin/llvm-jitlink
375.193 [24/32/6532] Linking CXX executable bin/llvm-debuginfo-analyzer
398.624 [24/31/6533] Linking CXX executable bin/dexp
400.439 [24/30/6534] Linking CXX executable bin/clangd-remap
401.703 [24/29/6535] Linking CXX executable bin/clang-scan-deps
402.417 [24/28/6536] Building CXX object tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
FAILED: tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
ccache /usr/lib64/ccache/c++ -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/tools/llvm-calc-occupancy -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-calc-occupancy -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/AMDGPU -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/Target/AMDGPU -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o -MF tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o.d -o tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp: In function ‘int main(int, char**)’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229: error: ‘getAddressableNumSGPRs’ is not a member of ‘llvm::AMDGPU::IsaInfo’
unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229: note: suggested alternative: ‘getAddressableNumVGPRs’
404.343 [24/27/6537] Linking CXX executable bin/clang-extdef-mapping
428.420 [24/26/6538] Linking CXX executable bin/llvm-gsymutil
429.565 [24/25/6539] Linking CXX executable bin/llvm-c-test
433.081 [24/24/6540] Linking CXX executable bin/llvm-isel-fuzzer
433.926 [24/23/6541] Linking CXX executable bin/dsymutil
434.081 [24/22/6542] Linking CXX executable bin/clang-sycl-linker
434.245 [24/21/6543] Linking CXX executable bin/llvm-lto
435.504 [24/20/6544] Linking CXX executable bin/llvm-reduce
436.101 [24/19/6545] Linking CXX executable bin/llvm-dwarfutil
436.601 [24/18/6546] Linking CXX executable bin/llvm-split
437.140 [24/17/6547] Linking CXX executable bin/clang-linker-wrapper
438.793 [24/16/6548] Linking CXX executable bin/llvm-opt-fuzzer
441.637 [24/15/6549] Linking CXX executable bin/llc
441.706 [24/14/6550] Linking CXX executable bin/opt
442.419 [24/13/6551] Linking CXX executable bin/clang-nvlink-wrapper
443.842 [24/12/6552] Linking CXX shared library lib/libLTO.so.24.0git
443.946 [24/11/6553] Linking CXX executable bin/llvm-lto2
444.098 [24/10/6554] Linking CXX executable bin/llvm-ir2vec
470.254 [24/9/6555] Linking CXX shared library lib/libclang-cpp.so.24.0git
472.830 [24/8/6556] Linking CXX shared library lib/libclang.so.24.0.0git
483.935 [24/7/6557] Linking CXX executable bin/clang-check
497.208 [24/6/6558] Linking CXX executable bin/clang-repl
498.108 [24/5/6559] Linking CXX executable bin/clang-24
507.467 [24/4/6560] Linking CXX executable bin/clangd-indexer
523.072 [24/3/6561] Linking CXX executable bin/clangd
524.581 [24/2/6562] Linking CXX executable bin/clang-tidy
525.534 [24/1/6563] Linking CXX executable bin/clangd-fuzzer
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/208727
More information about the llvm-commits
mailing list