Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in hello-world.c
and use a compatible Cilk compiler like gcc
with Cilkplus support to compile and run it.
In some environments, you might need to link against Cilk libraries explicitly. For example:
Sometimes we’ll want to optimize our programs for parallel execution. Cilk provides parallel constructs such as cilk_spawn
and cilk_sync
to facilitate this.
Now that we can run and build basic Cilk programs, let’s learn more about the language.