Intel® Cilk™ Plus – Monte Carlo Sample

This is the Monte Carlo example associated with the "Intel® Cilk™ Plus – The Simplest Path to Parallelism" how-to article.  It shows a Monte Carlo algorithm implemented as serial loops, one using Intel Cilk Plus' cilk_for keyword to implement parallelism, one version using Intel Cilk Plus' array notations to allow vectorization for the SIMD instruction, and another version using both cilk_for and the array notations.  It demonstrates great performance with very little coding changes through both data-parallelism and task-parallelism.
Sources with Microsoft Visual Studio solution are attached below.

By installing or copying all or any part of the software components in this page, you agree to the terms of the Intel Sample Source Code License Agreement.


For more complete information about compiler optimizations, see our Optimization Notice.
Package icon MonteCarloSample_vs2012.zip14.37 KB

1 comment

anonymous's picture

I just want to download source to look at. We've already purchased Intel compiler, just let through already.

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.