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
[OMPT] Segfault in clangs ompt_callback system #55073
Comments
@llvm/issue-subscribers-openmp |
I would not recommend calling OpenMP functions inside OMPT callbacks since this is against the OpenMP specifications: Section 19.5 of the OpenMP Standard 5.2 specifications states the following restriction:
This includes both |
Thanks for the hint. I was not aware of this restriction. What would be the recommended way of figuring out which thread (level and ID) issued the callback? |
I don't have a perfect answer for that since I'm also just using the OMPT framework. |
Hi,
please consider the following test code:
In the code I register the implicit task callback function for the ompt_callback system.
Then I compile it with the latest git version of llvm:
clang -fopenmp -o test.x test.c
When executing the resulting program I get the following output:
The segfault can be circumvented if for
ompt_scope_end
in theimplicit_task_callback
theomp_get_level()
call is omitted.The text was updated successfully, but these errors were encountered: