[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:31:22 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fuzzer` running on `sanitizer-buildbot5` while building `llvm` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/32/builds/45469
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[17/20] Installing libcxx_fuzzer_i386...
[0/1] Install the project...
-- Install configuration: "Release"
[18/20] Generating /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/compile_commands.json
[19/20] Installing libcxx_fuzzer_x86_64...
[0/1] Install the project...
-- Install configuration: "Release"
[23/27] No install step for 'runtimes'
[25/27] Completed 'runtimes'
[26/27] Building CXX object tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
FAILED: [code=1] tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DLLVM_BUILD_STATIC -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/tools/llvm-calc-occupancy -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/lib/Target/AMDGPU -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -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/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:41: error: no member named 'getAddressableNumSGPRs' in namespace 'llvm::AMDGPU::IsaInfo'; did you mean 'getAddressableNumVGPRs'?
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ^~~~~~~~~~~~~~~~~~~~~~
| getAddressableNumVGPRs
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:67: error: too few arguments to function call, expected 2, have 1
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
282 | unsigned DynamicVGPRBlockSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
[17/20] Installing libcxx_fuzzer_i386...
[0/1] Install the project...
-- Install configuration: "Release"
[18/20] Generating /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/compile_commands.json
[19/20] Installing libcxx_fuzzer_x86_64...
[0/1] Install the project...
-- Install configuration: "Release"
[23/27] No install step for 'runtimes'
[25/27] Completed 'runtimes'
[26/27] Building CXX object tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
FAILED: [code=1] tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DLLVM_BUILD_STATIC -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/tools/llvm-calc-occupancy -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/lib/Target/AMDGPU -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -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/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:41: error: no member named 'getAddressableNumSGPRs' in namespace 'llvm::AMDGPU::IsaInfo'; did you mean 'getAddressableNumVGPRs'?
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ^~~~~~~~~~~~~~~~~~~~~~
| getAddressableNumVGPRs
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:67: error: too few arguments to function call, expected 2, have 1
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
282 | unsigned DynamicVGPRBlockSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=12.758756
```
</details>
https://github.com/llvm/llvm-project/pull/208727
More information about the llvm-commits
mailing list