hello,
I have problem ... plz help me out.
I am using Ubuntu 14.04 LTS and using Codeblocks for C/C++, GCC 4.9.2
Now I install "Intel Cilk Plus" using "Synaptic Package manager"
=> libcilkrts5
=> libcilkrts-dbg
=> libx32cilkrts5
=> libx32cilkrts5-dbg
it installs cilk runtime files in "usr/bin" and headers in "/usr/lib/gcc/i686-linux-gnu/4.9.2".
Now problem is ... how i execute code written in "Intel Cilk Plus" using "codeblocks"
sample code:
/**********************************/
#include <stdio.h>
#include <stdlib.h>
#include <cilk/cilk.h>
int sum = 0;
void f(int arg)
{
sum += arg;
}
int main()
{
cilk_spawn f(1);
cilk_spawn f(2);
cilk_sync;
printf("Sum is %d",sum);
return 0;
}
/**********************************/
Thanks in advance...