Closed hq6 closed 6 years ago
Thanks for reaching out.
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.
Thanks! With the header, the program compiles and runs.
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
.