OpenMPToolsInterface / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
http://llvm.org
2 stars 4 forks source link

[OMPT] implicit task end might be called early #4

Open jprotze opened 4 years ago

jprotze commented 4 years ago
#pragma omp parallel num_threads(2)
#pragma omp master
{
#pragma omp task
{}
sleep(1);
}

The worker thread has the chance to reach the final barrier before the master thread initialized the taskteam -> the worker thread calls ompt-implicit-task-end and might still execute the generated task.

kmp_wait_release.h:271 should not check for this_thr->th.th_task_team == NULL