[llvm] [llvm-calc-occupancy] Add an AMDGPU occupancy calculator tool (PR #208727)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 06:33:27 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/38941
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
82.826 [297/34/7518] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BalancedPartitioningTest.cpp.o
82.965 [296/34/7519] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
83.098 [295/34/7520] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
83.201 [294/34/7521] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CrashRecoveryTest.cpp.o
83.366 [293/34/7522] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Caching.cpp.o
83.570 [292/34/7523] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
83.637 [291/34/7524] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Casting.cpp.o
83.769 [290/34/7525] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
83.955 [289/34/7526] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CHERICapabilityFormatTest.cpp.o
84.072 [288/34/7527] 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
/opt/ccache/bin/g++ -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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/llvm-calc-occupancy -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/tools/llvm-calc-occupancy -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/AMDGPU -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp: In function ‘int main(int, char**)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229: error: ‘getAddressableNumSGPRs’ is not a member of ‘llvm::AMDGPU::IsaInfo’; did you mean ‘getAddressableNumVGPRs’?
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
|
84.090 [288/33/7528] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Chrono.cpp.o
87.821 [288/32/7529] Linking CXX executable unittests/SandboxIR/SandboxIRTests
89.283 [288/31/7530] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
89.333 [288/30/7531] Linking CXX executable bin/dsymutil
90.440 [288/29/7532] Linking CXX executable bin/llvm-c-test
90.635 [288/28/7533] Linking CXX executable unittests/Analysis/AnalysisTests
91.853 [288/27/7534] Linking CXX executable bin/c-index-test
98.010 [288/26/7535] Linking CXX executable bin/llvm-gsymutil
100.298 [288/25/7536] Linking CXX executable unittests/IR/IRTests
100.490 [288/24/7537] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
100.780 [288/23/7538] Linking CXX executable bin/llvm-dwarfutil
102.268 [288/22/7539] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
103.235 [288/21/7540] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
104.641 [288/20/7541] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
105.710 [288/19/7542] Linking CXX executable unittests/Passes/Plugins/PluginsTests
105.965 [288/18/7543] Linking CXX executable bin/llc
106.487 [288/17/7544] Linking CXX executable bin/llvm-ir2vec
107.425 [288/16/7545] Linking CXX executable bin/llvm-isel-fuzzer
107.738 [288/15/7546] Linking CXX executable bin/llvm-split
109.469 [288/14/7547] Linking CXX executable bin/llvm-opt-fuzzer
110.222 [288/13/7548] Linking CXX executable unittests/MIR/MIRTests
110.647 [288/12/7549] Linking CXX executable unittests/CodeGen/CodeGenTests
110.665 [288/11/7550] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
110.876 [288/10/7551] Linking CXX executable bin/llvm-lto2
110.905 [288/9/7552] Linking CXX executable bin/llvm-reduce
110.938 [288/8/7553] Linking CXX executable unittests/MI/MITests
110.951 [288/7/7554] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
111.068 [288/6/7555] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
111.157 [288/5/7556] Linking CXX executable bin/opt
111.219 [288/4/7557] Linking CXX executable unittests/CodeGen/CGPluginTest/CGPluginTest
111.326 [288/3/7558] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
111.937 [288/2/7559] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
112.272 [288/1/7560] Linking CXX executable tools/clang/unittests/AllClangUnitTests
```
</details>
https://github.com/llvm/llvm-project/pull/208727
More information about the llvm-commits
mailing list