You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to include the cilk/cilk.h header file to get the cilk_spawn and cilk_sync keywords. I think that's the only change to the code that you'll need.
Thanks for pointing out the issue. We should add a note about that header on the Cilk Hub website.
I installed Cilk using the instructions from the website.
I copied the following program from the Cilk documentation.
I then compiled using the compiler flag that they specified.
The desired output is a working executable that uses
Cilk
and prints6765
.What magic incantations are needed to produce this executable?
I am running Ubuntu 18.04 with kernel
4.4.0-45-generic
.The text was updated successfully, but these errors were encountered: