Skip to content
Stephanie edited this page Jan 21, 2014 · 7 revisions

Download

http://parallelbook.com/instructor OR http://parallelbook.com/student have the same links.
*This page is built upon version 3 of the code time stamped on November 13, 2013.

Prerequisites

This section lists prerequisite software required to build and run the examples. Compiler

To compile all of the examples requires a compiler supporting: Cilk Plus OpenMP 3.0 or later C++11 lambda expressions Currently supported compilers are: Compiler Comment Intel C++ compiler, version 13.0 or later Version 13.0 or later can compile all of the examples. g++ 4.5.1 or later Cannot compile Cilk Plus examples. gcc 4.7 branch with Cilk Plus Should be able to compile all of the examples Visual Studio 2010 or later Can compile only the TBB examples. Conditional compilation directives will automatically omit code that these compilers cannot handle. Libraries

You need Intel Threading Building Blocks (TBB), because the examples use TBB's portable tbb::tick_count to do timing. TBB is distributed with the Intel compiler, and or open-source version can be downloaded. The makefiles assume your environment is set up so that your compiler can find the TBB include files and run-time library. On Linux and MacOS, you can do this setup by running the script tbb/bin/tbbvars.sh or sourcing the script tbb/bin/tbbvars.csh, depending on which shell you are using. Those scripts are part of TBB and not part of this package. The Cholesky Factorization example requires a Basic Linear Algebra Subroutines (BLAS) library. See here for details.

Other Tools

Linux and Mac OS systems typically have the other prerequisites. Windows users may have to acquire a few extra tools: GNU make GNU make is required to build the examples. Python Required to run the top-level Makefile that builds all the examples. Python is not required for building individual examples.

Clone this wiki locally