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

DRB133: Why there is no data race for x #156

Open
xyuwang21 opened this issue Feb 5, 2025 · 1 comment
Open

DRB133: Why there is no data race for x #156

xyuwang21 opened this issue Feb 5, 2025 · 1 comment

Comments

@xyuwang21
Copy link

No description provided.

@xyuwang21
Copy link
Author

// #pragma omp task depend(in: x) if(0) // 1st taskwait
// {}
It is these two lines of code that play a role in not creating the task, but serializing it in the main thread so that the main thread waits for task1 to finish.
Not sure if I'm accurate, if anyone is clear, please let me know.

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

1 participant