Intel Cilk Plus Multi-Threading Support Going Into GCC

Written by Michael Larabel in GNU on 8 October 2013 at 04:28 PM EDT. 1 Comment
GNU
This morning there was news of Intel committed their open-source OpenMP Run-Time Library as a new LLVM project. Now this afternoon there's more good news for multi-threading in open-source compilers: the GCC steering committee will allow Intel to add their Cilk+ Runtime Library to the GCC code-base as they add multi-threading Cilk Plus C/C++ support to the compiler.

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.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week