Intel Cilk Plus Multi-Threading Support Going Into GCC

Cilk Plus is an extension to C and C++ to allow for multi-threaded parallel computing. The language extensions make it easier for 32-bit and 64-bit task and data parallelism. The Cilk+ language extensions principally come down to new cilk_for, cilk_spawn, and cilk_sync keywords for allowing loop bodies to execute in parallel, function calls to execute asynchronously, and waiting for all spawned calls in a function to complete, respectively.
Cilk Plus has been supported by Intel's in-house compiler while they have committed to open-source support in both GCC and LLVM/Clang. Back in 2011 we first wrote about Intel porting Cilk Plus to GCC, then in August of last year that Intel was close to wanting to merge the support, and at the end of last year Intel was waiting for the code to merge.
Intel has the support ready to land and last month sent out new patches for introducing the Cilk_spawn and Cilk_sync keywords into the C and C++ compilers. However, besides the compiler changes, there's also the needed run-time support for Cilk Plus binaries. Intel has already made the run-time library available under the GPLv3 and BSD-3 licenses for GCC and LLVM/Clang, respectively. However, Intel had to wait on permission from the GCC steering committee to introduce a foreign library.
As of today, Red Hat's Jeff Law has shared on the GCC mailing list that the steering committee for the GNU Compiler Collection has approved adding the Cilk+ Runtime System into the GCC repository.
With all of that said, hopefully the code push of the run-time support plus new Cilk Plus keywords will happen soon thus making Intel Cilk Plus multi-threading support a feature of GCC 4.9, which should be released in H1'2014.
1 Comment