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
This test program
#include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { cilk_scope for (int i = 0; i < argc; ++i) cilk_spawn { fprintf(stdout, "%s\n", argv[i]); usleep(100); } return 0; }
crashes with an assertion failure when run on more than one thread:
cilk assertion failed: __cilkrts_synced(sf)
Adding braces around the body of the cilk_scope fixes the problem.
cilk_scope
The usleep call is to make sure work is stolen.
usleep
The text was updated successfully, but these errors were encountered:
VoxSciurorum
Successfully merging a pull request may close this issue.
This test program
crashes with an assertion failure when run on more than one thread:
Adding braces around the body of the
cilk_scope
fixes the problem.The
usleep
call is to make sure work is stolen.The text was updated successfully, but these errors were encountered: