-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenMP] Runtime assertion failure (barrier on a single thread with target tasks) #81488
Labels
Comments
rpereira-dev
changed the title
OpenMP runtime assertion failure (barrier on a single thread with target tasks)
[OpenMP] Runtime assertion failure (barrier on a single thread with target tasks)
Feb 12, 2024
@llvm/issue-subscribers-openmp Author: PEREIRA Romain (rpereira-dev)
OpenMP runtime assertion failure when executing a barrier on a single thread with target tasks, built from source commit 35fae04
main.c# include <omp.h>
# define Nz 8
# define DEVICE_ID 0
int
main(void)
{
# pragma omp parallel
{
# pragma omp single
{
# pragma omp target teams distribute parallel for nowait device(DEVICE_ID)
for (int i = 0 ; i < Nz ; ++i)
{}
}
# pragma omp barrier
}
return 0;
} Command lineclang -Wall -Werror -Wextra -fopenmp -O0 -g main.c
OMP_NUM_THREADS=1 ./a.out Output
Insights
I believe this may be related to HHTs |
@lwshanbd: Just create pull request and mention it on this page. |
The bug arises from the lack of synchronization for task team when the team is serialized. PR is created. |
lwshanbd
added a commit
to lwshanbd/llvm-project
that referenced
this issue
Mar 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenMP runtime assertion failure when executing a barrier on a single thread with target tasks, built from source commit 35fae04
main.c
Command line
Output
Insights
LIBOMP_USE_HIDDEN_HELPER_TASK=0
lead to successful terminationI believe this may be related to HHTs
The text was updated successfully, but these errors were encountered: