This patch makes some clean up for code of hidden helper task.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/runtime/src/kmp_taskdeps.h | ||
---|---|---|
147–151 | This shouldn't be the encountering tid, but any random number in [0,teamsize). | |
openmp/runtime/src/kmp_tasking.cpp | ||
3953 | Either add an assertion (start<nthreads) or limit the value to nthreads |
Comment Actions
rebase and fix comments
openmp/runtime/src/kmp_taskdeps.h | ||
---|---|---|
147–151 | __kmp_tid_from_gtid can make sure we get the right tid, aka [0, team size). |
This shouldn't be the encountering tid, but any random number in [0,teamsize).
The value is used as an index to the array of threads for the team to which the task binds.