Skip to content
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

thread id inside omp task code management #2

Open
adcastel opened this issue Oct 21, 2016 · 2 comments
Open

thread id inside omp task code management #2

adcastel opened this issue Oct 21, 2016 · 2 comments

Comments

@adcastel
Copy link

Now, the thread information for each omp task is taken from blocked ULTs. It works from common task patterns but not for nested task codes that start with single or master clauses (like Fibonacci).

The problem is that we are doubling the thread structures including the task queue so when a new omp task is created it can be done in the real threads queue or in the "fake" one. Then, when we try to join the task... we can not be sure where it is.

However, this issue is related to the OpenMP committee decision about if two omp task can be concurrently executed sharing the thread id

@smseo
Copy link

smseo commented Oct 28, 2016

Currently, it turned out it is not correct to run two tasks concurrently with the same thread id because two tasks may access the thread-private data, which should be serialized.

@adcastel
Copy link
Author

OK. So, we need to think another way to get the thread information and to identify the executing thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants