We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code:
#include <stdio.h> int foo() { return 42; } int bar(int in) { return in + 11; } int main(int argc, char **argv) { int x = 5, y = 1, z = 0; printf("&x = %p\n", &x); #pragma omp parallel num_threads(1) { #pragma omp single { #pragma omp task depend(out: x) x = foo(); #pragma omp task depend(in: x) depend(out : y) y = bar(x); #pragma omp task depend(in: y) z = bar(y); } } printf("x = %d\n",x); printf("y = %d\n",y); printf("z = %d\n",z); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code:
The text was updated successfully, but these errors were encountered: