[Openmp-commits] [openmp] [OpenMP] Fix td_tdg_task_id underflow when taskloop and taskgraph (PR #150877)
Josep Pinot via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 1 07:07:18 PDT 2025
jpinot wrote:
> Right, I missed, that record_map is essentially of type `vector<kmp_node_info_t>`, not `vector<kmp_node_info_t *>`.
>
> Another possible approach would be to use a customized vector which allocates `fixed_sized` blocks as necessary (instead of realloc) and redirects `operator[](i)` to look at the `i % fixed_sized` element of block `i / fixed_sized`.
As discussed, the latest change implements a vector-like abstraction for nodes to allow resizing without modifying the addresses of existing nodes. This aims to resolve the thread safety issues.
https://github.com/llvm/llvm-project/pull/150877
More information about the Openmp-commits
mailing list