Installing cilk and compiling examples in Ubuntu 14.04 LTS

cd cilk-5.4.6

./configure CFLAGS="-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L"

make

sudo make install

cd examples

cilkc -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L fib.cilk -o fib

 

Categories: Dev