[Openmp-commits] [openmp] [OpenMP] Fix td_tdg_task_id underflow when taskloop and taskgraph (PR #150877)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 18 07:02:16 PDT 2025
jprotze wrote:
The `record_map` accesses in `__kmp_track_dependence` are not protected for a concurrent reallocation of the vector. I didn't check all the other accesses to the `record_map`, whether they might be concurrent to a reallocation.
I think there are two options:
- lock any access to `record_map` that is possibly concurrent to a write/push (probably way too expensive)
- store a pointer to the node_info in kmp_taskdata_t: `task->tdg_node_info = task->tdg->record_map[task->td_tdg_task_id]`
https://github.com/llvm/llvm-project/pull/150877
More information about the Openmp-commits
mailing list