Category:Cilk++

From Rosetta Code
Language
Cilk++
This programming language may be used to instruct a computer to perform a task.
Official website
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Cilk++.

Cilk++ is an extension to C++ that offers a quick, easy and reliable way to improve the performance of C++ programs on multi-core processors.

It introduces three new key words:

  • The cilk_spawn keyword modifies a function call statement to tell the Cilk++ runtime system that the function may (but is not required to) run in parallel with the caller
  • The cilk_sync statement indicates that the current function cannot run in parallel with its spawned children. After the children all complete, the current function can continue.
  • A cilk_for loop is a replacement for the normal C++ for loop that permits loop iterations to run in parallel. The Cilk++ compiler converts a cilk_for loop into an efficient divide-and-conquer recursive traversal over the loop iterations.

Subcategories

This category has the following 3 subcategories, out of 3 total.