Changes

Jump to: navigation, search

GPU621/DPS921 Student Resources

578 bytes added, 00:06, 18 January 2014
Cilk Plus
== Cilk Plus ==
* [http://groups.csail.mit.edu/sct/wiki/index.php?title=Cilk_Plus_Installation_Guide MIT Installation Guide]
* [https://www.cilkplus.org/build-gcc-cilkplus Cilk Plus Installation Guide]
* Cilk Plus is installed on matrix.senecac.on.ca server and on the matrix partition of the workstations in T2108
** /usr/local/gcc/gcc-cilk/bin/g++
 
====Tips for building from source (tested on Fedora 19)====
Works but gets a "Segmentation fault (core dumped)" when testing out w1.cilk.cpp when cilk_for loops > 3 times.
* download snapshot gcc-2427776 (2013-05-20) (current version on matrix as of 2014-01-17)
* configure using:
** /path/to/configure --prefix=/path/to/installation --enable-languages="c,c++" --disable-multilib
 
=== Configuration ===
==== Linux ====
* add to .bash_profile
** alias gc++="/usr/local/gcc/gcc-cilk/bin/g++ -fcilkplus -ldl -lcilkrts"
** export LD_LIBRARY_PATH=/path/to/cilkplus-installation/lib:$LD_LIBRARY_PATH
** source /path/to/tbbvars.sh ia32 -ltbb
== TBB ==
1
edit

Navigation menu