[llvm] [offload] Fix kernel record/replay and add extensible mechanism (PR #190588)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 18:28:27 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `offload` at step 5 "compile-openmp".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/26608
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (compile-openmp) failure: build (failure)
...
1117 | llvm::stable_sort(
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:99:5: note: 'get_temporary_buffer<InstrProfValueData>' has been explicitly marked deprecated here
99 | _GLIBCXX17_DEPRECATED
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:119:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
119 | # define _GLIBCXX17_DEPRECATED [[__deprecated__]]
| ^
3 warnings generated.
18.522 [92/26/4326] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
FAILED: offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DDEBUG_PREFIX=\"omptarget\" -DOMPT_SUPPORT=1 -DTARGET_NAME=omptarget -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-bins/offload/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/plugins-nextgen/common/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-bins/offload/plugins-nextgen/common/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/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o -MF offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o.d -o offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/libomptarget/omptarget.cpp
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/libomptarget/omptarget.cpp:2425:12: error: use of undeclared identifier 'TM'; did you mean 'SymbolDataTy::TM'?
2425 | assert(TM->Table->TargetsTable.size() > (size_t)DeviceId &&
| ^~
| SymbolDataTy::TM
/usr/include/assert.h:93:27: note: expanded from macro 'assert'
93 | (static_cast <bool> (expr) \
| ^~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/libomptarget/omptarget.cpp:2404:15: note: 'SymbolDataTy::TM' declared here
2404 | TableMap *TM = nullptr;
| ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/libomptarget/omptarget.cpp:2425:12: error: invalid use of non-static data member 'TM'
2425 | assert(TM->Table->TargetsTable.size() > (size_t)DeviceId &&
| ^~
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/libomptarget/omptarget.cpp:14:
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/include/omptarget.h:17:
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/offload/include/Shared/APITypes.h:19:
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/ADT/SmallVector.h:20:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:61:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<std::pair<unsigned long, llvm::Function *>>' is deprecated [-Wdeprecated-declarations]
263 | std::get_temporary_buffer<value_type>(_M_original_len));
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<__gnu_cxx::__normal_iterator<std::pair<unsigned long, llvm::Function *> *, std::vector<std::pair<unsigned long, llvm::Function *>>>, std::pair<unsigned long, llvm::Function *>>::_Temporary_buffer' requested here
4996 | _TmpBuf __buf(__first, (__last - __first + 1) / 2);
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:5070:23: note: in instantiation of function template specialization 'std::__stable_sort<__gnu_cxx::__normal_iterator<std::pair<unsigned long, llvm::Function *> *, std::vector<std::pair<unsigned long, llvm::Function *>>>, __gnu_cxx::__ops::_Iter_comp_iter<llvm::less_first>>' requested here
5070 | _GLIBCXX_STD_A::__stable_sort(__first, __last,
| ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/ADT/STLExtras.h:2122:8: note: in instantiation of function template specialization 'std::stable_sort<__gnu_cxx::__normal_iterator<std::pair<unsigned long, llvm::Function *> *, std::vector<std::pair<unsigned long, llvm::Function *>>>, llvm::less_first>' requested here
2122 | std::stable_sort(adl_begin(Range), adl_end(Range), C);
| ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h:764:9: note: in instantiation of function template specialization 'llvm::stable_sort<std::vector<std::pair<unsigned long, llvm::Function *>> &, llvm::less_first>' requested here
764 | llvm::stable_sort(MD5FuncMap, less_first());
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:99:5: note: 'get_temporary_buffer<std::pair<unsigned long, llvm::Function *>>' has been explicitly marked deprecated here
99 | _GLIBCXX17_DEPRECATED
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/190588
More information about the llvm-commits
mailing list